river config working finally
This commit is contained in:
@@ -41,39 +41,13 @@
|
|||||||
|
|
||||||
programs.htop.enable = true;
|
programs.htop.enable = true;
|
||||||
programs.starship.enable = true;
|
programs.starship.enable = true;
|
||||||
programs.bash.initExtra = "fish";
|
programs.bash.initExtra = "
|
||||||
|
fish
|
||||||
|
";
|
||||||
|
|
||||||
wayland.windowManager.river.enable = true;
|
wayland.windowManager.river.enable = true;
|
||||||
|
|
||||||
# Home Manager is pretty good at managing dotfiles. The primary way to manage
|
|
||||||
# plain files is through 'home.file'.
|
|
||||||
home.file = {
|
|
||||||
# # symlink to the Nix store copy.
|
|
||||||
# ".screenrc".source = dotfiles/screenrc;
|
|
||||||
|
|
||||||
# # You can also set the file content immediately.
|
|
||||||
# ".gradle/gradle.properties".text = ''
|
|
||||||
# org.gradle.console=verbose
|
|
||||||
# org.gradle.daemon.idletimeout=3600000
|
|
||||||
# '';
|
|
||||||
};
|
|
||||||
|
|
||||||
# Home Manager can also manage your environment variables through
|
|
||||||
# 'home.sessionVariables'. These will be explicitly sourced when using a
|
|
||||||
# shell provided by Home Manager. If you don't want to manage your shell
|
|
||||||
# through Home Manager then you have to manually source 'hm-session-vars.sh'
|
|
||||||
# located at either
|
|
||||||
#
|
|
||||||
# ~/.nix-profile/etc/profile.d/hm-session-vars.sh
|
|
||||||
#
|
|
||||||
# or
|
|
||||||
#
|
|
||||||
# ~/.local/state/nix/profiles/profile/etc/profile.d/hm-session-vars.sh
|
|
||||||
#
|
|
||||||
# or
|
|
||||||
#
|
|
||||||
# /etc/profiles/per-user/autumn/etc/profile.d/hm-session-vars.sh
|
|
||||||
#
|
|
||||||
home.sessionVariables = {
|
home.sessionVariables = {
|
||||||
EDITOR = "helix";
|
EDITOR = "helix";
|
||||||
TERM = "alacritty";
|
TERM = "alacritty";
|
||||||
|
|||||||
@@ -2,9 +2,9 @@
|
|||||||
|
|
||||||
{
|
{
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
#home.packages = with pkgs; [
|
||||||
fuzzel
|
# fuzzel
|
||||||
];
|
#];
|
||||||
|
|
||||||
programs.fuzzel = {
|
programs.fuzzel = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|||||||
@@ -11,9 +11,15 @@
|
|||||||
|
|
||||||
wayland.windowManager.river = {
|
wayland.windowManager.river = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
systemd.enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
default-layout = "wideriver";
|
spawn = [
|
||||||
send-layout-cmd="wideriver \"--layout left --stack dwindle --count 1 --ratio 0.5\"";
|
# "waybar"
|
||||||
|
"~/login-wm-setup-2.sh"
|
||||||
|
# "wideriver"
|
||||||
|
];
|
||||||
|
output-layout = "wideriver";
|
||||||
|
rule-add = "ssd";
|
||||||
map = {
|
map = {
|
||||||
normal = {
|
normal = {
|
||||||
"Super Return" = "spawn alacritty";
|
"Super Return" = "spawn alacritty";
|
||||||
@@ -22,7 +28,7 @@
|
|||||||
"Super K" = "focus-view previous";
|
"Super K" = "focus-view previous";
|
||||||
"Super+Shift J" = "swap next";
|
"Super+Shift J" = "swap next";
|
||||||
"Super+Shift K" = "swap previous";
|
"Super+Shift K" = "swap previous";
|
||||||
"Super R" = "fuzzel";
|
"Super R" = "spawn fuzzel";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ $directory\
|
|||||||
[](fg:#EF7627 bg:#FF9A56)\
|
[](fg:#EF7627 bg:#FF9A56)\
|
||||||
$git_branch\
|
$git_branch\
|
||||||
$git_status\
|
$git_status\
|
||||||
[](fg:#FF9A56 bg:#2b3339)\
|
[](fg:#FF9A56 bg:#D162A4)\
|
||||||
$c\
|
$c\
|
||||||
$python\
|
$python\
|
||||||
$elixir\
|
$elixir\
|
||||||
@@ -19,7 +19,6 @@ $haskell\
|
|||||||
$java\
|
$java\
|
||||||
$julia\
|
$julia\
|
||||||
$nodejs\
|
$nodejs\
|
||||||
$nix_shell\
|
|
||||||
$nim\
|
$nim\
|
||||||
$rust\
|
$rust\
|
||||||
$zig\
|
$zig\
|
||||||
@@ -114,11 +113,6 @@ symbol = " "
|
|||||||
style = "fg:#d3c6aa bg:#D162A4"
|
style = "fg:#d3c6aa bg:#D162A4"
|
||||||
format = '[[ $symbol ($version) ](fg:#d3c6aa bg:#D162A4)]($style)'
|
format = '[[ $symbol ($version) ](fg:#d3c6aa bg:#D162A4)]($style)'
|
||||||
|
|
||||||
[nix_shell]
|
|
||||||
symbol = " "
|
|
||||||
style = "fg:#d3c6aa bg:#D162a4"
|
|
||||||
format = '[[ $symbol ($version) ](fg:#d3c6aa bg:#d126a4)]($style)'
|
|
||||||
|
|
||||||
[nim]
|
[nim]
|
||||||
symbol = " "
|
symbol = " "
|
||||||
style = "fg:#d3c6aa bg:#D162A4"
|
style = "fg:#d3c6aa bg:#D162A4"
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ home.packages = with pkgs; [
|
|||||||
|
|
||||||
programs.waybar = {
|
programs.waybar = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
systemd.enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
mainBar = {
|
mainBar = {
|
||||||
layer = "top";
|
layer = "top";
|
||||||
@@ -17,42 +18,20 @@ home.packages = with pkgs; [
|
|||||||
|
|
||||||
# Module layout
|
# Module layout
|
||||||
modules-right = [
|
modules-right = [
|
||||||
"idle_inhibitor"
|
|
||||||
"pulseaudio"
|
"pulseaudio"
|
||||||
"network#physical"
|
|
||||||
"network#vpn"
|
|
||||||
"network#wifi"
|
"network#wifi"
|
||||||
"power-profiles-daemon"
|
|
||||||
"cpu"
|
"cpu"
|
||||||
"memory"
|
"memory"
|
||||||
"temperature"
|
"temperature"
|
||||||
"backlight"
|
"backlight"
|
||||||
"keyboard-state"
|
|
||||||
"sway/language"
|
|
||||||
"battery"
|
"battery"
|
||||||
"clock"
|
"clock"
|
||||||
"tray"
|
"tray"
|
||||||
];
|
];
|
||||||
|
|
||||||
# Module configurations
|
# Module configurations
|
||||||
"keyboard-state" = {
|
|
||||||
numlock = true;
|
|
||||||
capslock = true;
|
|
||||||
format = "{name} {icon}";
|
|
||||||
format-icons = {
|
|
||||||
locked = "";
|
|
||||||
unlocked = "";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
"idle_inhibitor" = {
|
|
||||||
format = "{icon}";
|
|
||||||
format-icons = {
|
|
||||||
activated = "";
|
|
||||||
deactivated = "";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
"tray" = {
|
"tray" = {
|
||||||
icon-size = 21;
|
icon-size = 21;
|
||||||
@@ -102,39 +81,6 @@ home.packages = with pkgs; [
|
|||||||
format-icons = ["" "" "" "" "" "" "" ""];
|
format-icons = ["" "" "" "" "" "" "" ""];
|
||||||
};
|
};
|
||||||
|
|
||||||
"power-profiles-daemon" = {
|
|
||||||
format = "{icon}";
|
|
||||||
tooltip-format = "Power profile: {profile}\nDriver: {driver}";
|
|
||||||
tooltip = true;
|
|
||||||
format-icons = {
|
|
||||||
default = "";
|
|
||||||
performance = "";
|
|
||||||
balanced = "";
|
|
||||||
power-saver = "";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
"network#physical" = {
|
|
||||||
interface = "enp0s13f*";
|
|
||||||
format-ethernet = "{ipaddr}/{cidr} ";
|
|
||||||
format = "{ipaddr}/{cidr} ";
|
|
||||||
tooltip-format = "{ifname} via {gwaddr} ";
|
|
||||||
format-linked = "{ifname} (Linked) ";
|
|
||||||
format-disconnected = "";
|
|
||||||
format-alt = "{ifname}: {ipaddr}/{cidr}";
|
|
||||||
};
|
|
||||||
|
|
||||||
"network#vpn" = {
|
|
||||||
interface = "tun*";
|
|
||||||
format-wifi = "{essid} ({signalStrength}%) ";
|
|
||||||
format-ethernet = "{ipaddr}/{cidr} ";
|
|
||||||
tooltip-format = "{ifname} via {gwaddr} ";
|
|
||||||
format-linked = "{ifname} (No IP) ";
|
|
||||||
format-disconnected = "click for VPN";
|
|
||||||
format-alt = "{ifname}: {ipaddr}/{cidr}";
|
|
||||||
# on-click = "kitty --override tab_bar_style=hidden --title 'vpn-launcher' --app-id 'vpn-launcher' /bin/bash -c $HOME/bin/vpn";
|
|
||||||
};
|
|
||||||
|
|
||||||
"network#wifi" = {
|
"network#wifi" = {
|
||||||
interface = "wlp*";
|
interface = "wlp*";
|
||||||
format-wifi = "{essid} ({signalStrength}%) ";
|
format-wifi = "{essid} ({signalStrength}%) ";
|
||||||
@@ -171,7 +117,6 @@ home.packages = with pkgs; [
|
|||||||
font-family: "JetBrains Mono", "Font Awesome 6 Free";
|
font-family: "JetBrains Mono", "Font Awesome 6 Free";
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
}
|
}
|
||||||
|
|
||||||
window#waybar {
|
window#waybar {
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
background-color: #1e3b28;
|
background-color: #1e3b28;
|
||||||
@@ -189,7 +134,6 @@ button {
|
|||||||
border: none;
|
border: none;
|
||||||
border-radius: 0;
|
border-radius: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
button:hover {
|
button:hover {
|
||||||
background: inherit;
|
background: inherit;
|
||||||
box-shadow: inset 0 -3px #ffffff;
|
box-shadow: inset 0 -3px #ffffff;
|
||||||
@@ -362,5 +306,5 @@ button:hover {
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|||||||
@@ -47,7 +47,6 @@
|
|||||||
services.displayManager.sddm.wayland.enable = true;
|
services.displayManager.sddm.wayland.enable = true;
|
||||||
services.displayManager.sddm.enable = true;
|
services.displayManager.sddm.enable = true;
|
||||||
programs.river.enable = true;
|
programs.river.enable = true;
|
||||||
|
|
||||||
services.flatpak.enable = true;
|
services.flatpak.enable = true;
|
||||||
xdg.portal = {
|
xdg.portal = {
|
||||||
enable = true;
|
enable = true;
|
||||||
@@ -56,7 +55,6 @@
|
|||||||
pkgs.kdePackages.xdg-desktop-portal-kde
|
pkgs.kdePackages.xdg-desktop-portal-kde
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
services.printing.enable = true;
|
services.printing.enable = true;
|
||||||
services.pulseaudio.enable = false;
|
services.pulseaudio.enable = false;
|
||||||
security.rtkit.enable = true;
|
security.rtkit.enable = true;
|
||||||
@@ -113,8 +111,9 @@
|
|||||||
# List packages installed in system profile. To search, run:
|
# List packages installed in system profile. To search, run:
|
||||||
# $ nix search wget
|
# $ nix search wget
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
pkgs.vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
|
vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
|
||||||
# wget
|
# wget
|
||||||
|
pavucontrol
|
||||||
];
|
];
|
||||||
|
|
||||||
nix.settings.experimental-features = ["nix-command" "flakes"];
|
nix.settings.experimental-features = ["nix-command" "flakes"];
|
||||||
@@ -133,19 +132,7 @@
|
|||||||
# Enable the OpenSSH daemon.
|
# Enable the OpenSSH daemon.
|
||||||
services.openssh.enable = true;
|
services.openssh.enable = true;
|
||||||
|
|
||||||
# Open ports in the firewall.
|
system.stateVersion = "25.05";
|
||||||
# networking.firewall.allowedTCPPorts = [ ... ];
|
|
||||||
# networking.firewall.allowedUDPPorts = [ ... ];
|
|
||||||
# Or disable the firewall altogether.
|
|
||||||
# networking.firewall.enable = false;
|
|
||||||
|
|
||||||
# This value determines the NixOS release from which the default
|
|
||||||
# settings for stateful data, like file locations and database versions
|
|
||||||
# on your system were taken. It‘s perfectly fine and recommended to leave
|
|
||||||
# this value at the release version of the first install of this system.
|
|
||||||
# Before changing this value read the documentation for this option
|
|
||||||
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
|
||||||
system.stateVersion = "25.05"; # Did you read the comment?
|
|
||||||
|
|
||||||
system.autoUpgrade.enable = true;
|
system.autoUpgrade.enable = true;
|
||||||
system.autoUpgrade.allowReboot = true;
|
system.autoUpgrade.allowReboot = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user