diff --git a/common/wifi.nix b/common/wifi.nix index 373afc15..088628be 100644 --- a/common/wifi.nix +++ b/common/wifi.nix @@ -39,22 +39,21 @@ ); in { "Dustin's A54" = mkWPA2WiFi "Dustin's A54" "$DustinsA54PSK"; + "East Pole Coffee Co." = mkWPA2WiFi "East Pole Coffee Co." "$EastPolePSK"; "InmanPerkCustomer" = mkWPA2WiFi "InmanPerkCustomer" "$InmanPerkCustomerPSK"; + "javapatron" = mkOpenWiFi "javapatron"; "Muchacho Guest" = mkOpenWiFi "Muchacho Guest"; - "PERCguest" = mkWPA2WiFi "PERCguest" "$PERCguestPSK"; - "PERC COFFEE 5 Guest" = mkWPA2WiFi "PERC COFFEE 5 Guest" "$PERCguestPSK"; "Parkgrounds1" = mkWPA2WiFi "Parkgrounds1" "$Parkgrounds1PSK"; + "PERC COFFEE 5 Guest" = mkWPA2WiFi "PERC COFFEE 5 Guest" "$PERCguestPSK"; + "PERCguest" = mkWPA2WiFi "PERCguest" "$PERCguestPSK"; "Stargate-Discovery" = mkWPA2WiFi "Stargate-Discovery" "$StargateDiscoveryPSK"; "Taproom Public WiFi" = mkOpenWiFi "Taproom Public WiFi"; - "WeWorkWiFi" = mkEAPWiFi "WeWorkWiFi" "$WeWorkWiFiIdentity" "$WeWorkWiFiPassword" "mschapv2"; - "javapatron" = mkOpenWiFi "javapatron"; + "VINATL-Guest" = mkWPA2WiFi "VINATL-Guest" "$VINATLGuestPSK"; "wallace" = mkWPA2WiFi "wallace" "$wallacePSK"; + "WeWorkWiFi" = mkEAPWiFi "WeWorkWiFi" "$WeWorkWiFiIdentity" "$WeWorkWiFiPassword" "mschapv2"; }; }; - wifi = { - backend = "iwd"; - powersave = true; - }; + wifi.powersave = true; }; } diff --git a/hosts/slateport/disko.nix b/disko/btrfs-subvolumes.nix similarity index 95% rename from hosts/slateport/disko.nix rename to disko/btrfs-subvolumes.nix index 49a32b36..9d2c4ec4 100644 --- a/hosts/slateport/disko.nix +++ b/disko/btrfs-subvolumes.nix @@ -1,9 +1,9 @@ -{ +{disks ? ["/dev/nvme0n1"], ...}: { disko.devices = { disk = { main = { type = "disk"; - device = "/dev/sda"; + device = builtins.elemAt disks 0; content = { type = "gpt"; diff --git a/hosts/lavaridge/disko.nix b/disko/luks-btrfs-subvolumes.nix similarity index 95% rename from hosts/lavaridge/disko.nix rename to disko/luks-btrfs-subvolumes.nix index a6a16273..98f83558 100644 --- a/hosts/lavaridge/disko.nix +++ b/disko/luks-btrfs-subvolumes.nix @@ -1,9 +1,9 @@ -{ +{disks ? ["/dev/nvme0n1"], ...}: { disko.devices = { disk = { vdb = { type = "disk"; - device = "/dev/nvme0n1"; + device = builtins.elemAt disks 0; content = { type = "gpt"; partitions = { diff --git a/flake.lock b/flake.lock index d2c62dcf..0fe9c7f7 100644 --- a/flake.lock +++ b/flake.lock @@ -444,11 +444,11 @@ ] }, "locked": { - "lastModified": 1726836401, - "narHash": "sha256-MO/h4RV4Ho4g3W7h6xQkCu5X3wBD1YnziP1Sg/PCCyA=", + "lastModified": 1727183733, + "narHash": "sha256-JyOFDaIHTTpVp1uO/3M4md6KNIXXhcD8ztDlDST0VL8=", "owner": "alyraffauf", "repo": "nixhw", - "rev": "bd0c54e428c18213321a16f71ce0782d48c27350", + "rev": "42685325fa3ca92404b73221ffc8fae1e1671154", "type": "github" }, "original": { @@ -459,11 +459,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1726447378, - "narHash": "sha256-2yV8nmYE1p9lfmLHhOCbYwQC/W8WYfGQABoGzJOb1JQ=", + "lastModified": 1726969270, + "narHash": "sha256-8fnFlXBgM/uSvBlLWjZ0Z0sOdRBesyNdH0+esxqizGc=", "owner": "nixos", "repo": "nixpkgs", - "rev": "086b448a5d54fd117f4dc2dee55c9f0ff461bdc1", + "rev": "23cbb250f3bf4f516a2d0bf03c51a30900848075", "type": "github" }, "original": { @@ -666,11 +666,11 @@ "wallpapers": { "flake": false, "locked": { - "lastModified": 1726468197, - "narHash": "sha256-rag8Dk2qYswdE1GH5ocEF6PhFmnd6amzreZ3ZjLk2iI=", + "lastModified": 1727132619, + "narHash": "sha256-1V9LK/0GwsLjAwedYcW5uXq1y8l4W86Ce2DvrlseLcA=", "owner": "alyraffauf", "repo": "wallpapers", - "rev": "fc6bd53fdb9f2c1287e6ce36145a14773bae4dce", + "rev": "b86110d079361e785014fdc22eb3684bccf891c9", "type": "github" }, "original": { diff --git a/homeManagerModules/desktop/hyprland/README.md b/homeManagerModules/desktop/hyprland/README.md index 81c5e71d..923c03f1 100644 --- a/homeManagerModules/desktop/hyprland/README.md +++ b/homeManagerModules/desktop/hyprland/README.md @@ -73,8 +73,9 @@ ______________________________________________________________________ - SUPER + F11: Show/hide top panel. - SUPER + TAB: Open Window list. - SUPER + V: Toggle floating window. -- SUPER SHIFT + Backslash: Toggle vertical/horizontal splits. +- SUPER SHIFT + Backslash: Toggle vertical/horizontal splits (dwindle layout only). - SUPER SHIFT + G: Toggle groupbar. +- SUPER SHIFT + M: Swap window for master (master layout only). - SUPER SHIFT + W: Toggle fullscreen. #### Focus diff --git a/homeManagerModules/desktop/hyprland/default.nix b/homeManagerModules/desktop/hyprland/default.nix index dee99b44..6298956e 100644 --- a/homeManagerModules/desktop/hyprland/default.nix +++ b/homeManagerModules/desktop/hyprland/default.nix @@ -7,6 +7,18 @@ cfg = config.ar.home; in { config = lib.mkIf cfg.desktop.hyprland.enable { + services.hyprpaper = + lib.mkIf + (config.stylix.enable && !cfg.services.randomWallpaper.enable) + { + enable = true; + + settings = { + preload = ["${config.stylix.image}"]; + wallpaper = [",${config.stylix.image}"]; + }; + }; + wayland.windowManager.hyprland = { enable = true; settings = import ./settings.nix {inherit config lib pkgs;}; diff --git a/homeManagerModules/desktop/hyprland/settings.nix b/homeManagerModules/desktop/hyprland/settings.nix index 0cdd7174..32d0f020 100644 --- a/homeManagerModules/desktop/hyprland/settings.nix +++ b/homeManagerModules/desktop/hyprland/settings.nix @@ -27,37 +27,38 @@ in { bind = [ + ''$mod,M,exec,${lib.getExe config.programs.rofi.package} -show power-menu -modi "power-menu:${lib.getExe pkgs.rofi-power-menu} --choices=logout/lockscreen/suspend/shutdown/reboot"'' + ",PRINT,exec,${helpers.screenshot}" "$mod CTRL,L,exec,${lib.getExe pkgs.swaylock}" + "$mod SHIFT,backslash,togglesplit" + "$mod SHIFT,comma,exec,${lib.getExe pkgs.hyprnome} --previous --move" "$mod SHIFT,G,togglegroup" + "$mod SHIFT,M,layoutmsg,swapwithmaster master" + "$mod SHIFT,period,exec,${lib.getExe pkgs.hyprnome} --move" "$mod SHIFT,R,exec,${lib.getExe config.programs.rofi.package} -show run" "$mod SHIFT,S,movetoworkspace,special:magic" "$mod SHIFT,V,togglefloating" "$mod SHIFT,W,fullscreen" - "$mod SHIFT,backslash,togglesplit" - "$mod SHIFT,comma,exec,${lib.getExe pkgs.hyprnome} --previous --move" - "$mod SHIFT,period,exec,${lib.getExe pkgs.hyprnome} --move" "$mod,B,exec,${lib.getExe cfg.defaultApps.webBrowser}" "$mod,C,killactive" + "$mod,comma,exec,${lib.getExe pkgs.hyprnome} --previous" "$mod,E,exec,${lib.getExe cfg.defaultApps.editor}" "$mod,F,exec,${lib.getExe cfg.defaultApps.fileManager}" "$mod,F11,exec,pkill -SIGUSR1 waybar" "$mod,H,changegroupactive,b" "$mod,L,changegroupactive,f" "$mod,Left,changegroupactive,b" + "$mod,mouse_down,workspace,+1" + "$mod,mouse_up,workspace,-1" + "$mod,period,exec,${lib.getExe pkgs.hyprnome}" "$mod,R,exec,${lib.getExe config.programs.rofi.package} -show combi" "$mod,Right,changegroupactive,f" "$mod,S,togglespecialworkspace,magic" "$mod,T,exec,${lib.getExe cfg.defaultApps.terminal}" "$mod,Tab,exec,${lib.getExe config.programs.rofi.package} -show window" - "$mod,comma,exec,${lib.getExe pkgs.hyprnome} --previous" - "$mod,mouse_down,workspace,+1" - "$mod,mouse_up,workspace,-1" - "$mod,period,exec,${lib.getExe pkgs.hyprnome}" - ",PRINT,exec,${helpers.screenshot}" "CTRL ALT,M,submap,move" "CTRL ALT,R,submap,resize" "CTRL,F12,exec,${helpers.screenshot}" - ''$mod,M,exec,${lib.getExe config.programs.rofi.package} -show power-menu -modi "power-menu:${lib.getExe pkgs.rofi-power-menu} --choices=logout/lockscreen/suspend/shutdown/reboot"'' ] ++ builtins.map (x: "$mod SHIFT,${toString x},movetoworkspace,${toString x}") [1 2 3 4 5 6 7 8 9] ++ builtins.map (x: "$mod,${toString x},workspace,${toString x}") [1 2 3 4 5 6 7 8 9] @@ -168,11 +169,6 @@ in { }; }; - master = { - always_center_master = true; - new_status = false; - }; - misc = { disable_hyprland_logo = true; disable_splash_rendering = true; diff --git a/homes/aly/gui.nix b/homes/aly/gui.nix index 46138f44..a822f57b 100644 --- a/homes/aly/gui.nix +++ b/homes/aly/gui.nix @@ -45,10 +45,7 @@ self: {pkgs, ...}: { fileManager = pkgs.xfce.thunar; }; - services = { - gammastep.enable = true; - randomWallpaper.enable = true; - }; + services.gammastep.enable = true; theme = { enable = true; diff --git a/homes/aly/mail/default.nix b/homes/aly/mail/default.nix index 5918424f..37efd141 100644 --- a/homes/aly/mail/default.nix +++ b/homes/aly/mail/default.nix @@ -77,6 +77,7 @@ in { "mailnews.default_sort_order" = 2; # descending, 1 for ascending "mailnews.default_sort_type" = 18; # sort by date "mailnews.message_display.disable_remote_image" = false; + "mailnews.start_page.enabled" = false; "network.cookie.cookieBehavior" = 2; # no cookies "pdfjs.enabledCache.state" = true; "privacy.donottrackheader.enabled" = true; diff --git a/hosts/fallarbor/default.nix b/hosts/fallarbor/default.nix index 929daf58..b7e3c2db 100644 --- a/hosts/fallarbor/default.nix +++ b/hosts/fallarbor/default.nix @@ -11,7 +11,6 @@ ./secrets.nix ./stylix.nix self.inputs.nixhw.nixosModules.framework-13-intel-11th - self.nixosModules.common-auto-upgrade self.nixosModules.common-base self.nixosModules.common-locale self.nixosModules.common-mauville-share @@ -26,11 +25,7 @@ systemd-boot.enable = true; }; - environment.variables = { - FLAKE = "https://flakehub.com/f/alyraffauf/nixcfg/*.tar.gz"; - GDK_SCALE = "1.5"; - }; - + environment.variables.GDK_SCALE = "1.5"; networking.hostName = "fallarbor"; system.stateVersion = "24.05"; diff --git a/hosts/lavaridge/default.nix b/hosts/lavaridge/default.nix index a5d644a4..78349f6e 100644 --- a/hosts/lavaridge/default.nix +++ b/hosts/lavaridge/default.nix @@ -6,10 +6,10 @@ ... }: { imports = [ - ./disko.nix ./home.nix ./secrets.nix ./stylix.nix + (import ./../../disko/luks-btrfs-subvolumes.nix {disks = ["/dev/nvme0n1"];}) self.inputs.nixhw.nixosModules.framework-13-amd-7000 self.nixosModules.common-auto-upgrade self.nixosModules.common-base diff --git a/hosts/mauville/default.nix b/hosts/mauville/default.nix index 15dadc78..cf18d487 100644 --- a/hosts/mauville/default.nix +++ b/hosts/mauville/default.nix @@ -114,10 +114,11 @@ in { greetd = { enable = true; autologin = "aly"; - session = lib.getExe config.programs.sway.package; + session = lib.getExe config.programs.hyprland.package; }; steam.enable = true; + hyprland.enable = true; sway.enable = true; }; diff --git a/hosts/mauville/home.nix b/hosts/mauville/home.nix index f5f521f4..d022fd91 100644 --- a/hosts/mauville/home.nix +++ b/hosts/mauville/home.nix @@ -89,11 +89,10 @@ }; wayland.windowManager.hyprland.settings = { - bind = ["$mod SHIFT,M,layoutmsg,swapwithmaster master"]; general.layout = lib.mkForce "master"; master = { - mfact = 0.50; + mfact = 0.40; orientation = "center"; }; }; diff --git a/hosts/mauville/stylix.nix b/hosts/mauville/stylix.nix index fd317ea4..194f2331 100644 --- a/hosts/mauville/stylix.nix +++ b/hosts/mauville/stylix.nix @@ -6,7 +6,7 @@ stylix = { enable = true; base16Scheme = "${pkgs.base16-schemes}/share/themes/gruvbox-dark-hard.yaml"; - image = "${self.inputs.wallpapers}/wallhaven-mp886k.jpg"; + image = "${self.inputs.wallpapers}/wallhaven-3lyrvy.png"; imageScalingMode = "fill"; polarity = "dark"; diff --git a/hosts/petalburg/default.nix b/hosts/petalburg/default.nix index f18742aa..2f7c38b9 100644 --- a/hosts/petalburg/default.nix +++ b/hosts/petalburg/default.nix @@ -6,10 +6,10 @@ ... }: { imports = [ - ./disko.nix ./home.nix ./secrets.nix ./stylix.nix + (import ./../../disko/luks-btrfs-subvolumes.nix {disks = ["/dev/nvme0n1"];}) self.inputs.nixhw.nixosModules.lenovo-yoga-9i-intel-13th self.nixosModules.common-auto-upgrade self.nixosModules.common-base diff --git a/hosts/petalburg/disko.nix b/hosts/petalburg/disko.nix deleted file mode 100644 index a6a16273..00000000 --- a/hosts/petalburg/disko.nix +++ /dev/null @@ -1,56 +0,0 @@ -{ - disko.devices = { - disk = { - vdb = { - type = "disk"; - device = "/dev/nvme0n1"; - content = { - type = "gpt"; - partitions = { - ESP = { - size = "1024M"; - type = "EF00"; - content = { - type = "filesystem"; - format = "vfat"; - mountpoint = "/boot"; - mountOptions = [ - "defaults" - ]; - }; - }; - luks = { - size = "100%"; - content = { - type = "luks"; - name = "crypted"; - content = { - type = "btrfs"; - extraArgs = ["-f"]; - subvolumes = { - "/root" = { - mountpoint = "/"; - mountOptions = ["compress=zstd" "noatime"]; - }; - "persist" = { - mountpoint = "/persist"; - mountOptions = ["compress=zstd" "noatime"]; - }; - "/home" = { - mountpoint = "/home"; - mountOptions = ["compress=zstd" "noatime"]; - }; - "/nix" = { - mountpoint = "/nix"; - mountOptions = ["compress=zstd" "noatime"]; - }; - }; - }; - }; - }; - }; - }; - }; - }; - }; -} diff --git a/hosts/rustboro/default.nix b/hosts/rustboro/default.nix index 5f2268ea..01f9ff26 100644 --- a/hosts/rustboro/default.nix +++ b/hosts/rustboro/default.nix @@ -6,10 +6,10 @@ ... }: { imports = [ - ./disko.nix ./home.nix ./secrets.nix ./stylix.nix + (import ./../../disko/luks-btrfs-subvolumes.nix {disks = ["/dev/sda"];}) self.inputs.nixhw.nixosModules.thinkpad-t440p self.nixosModules.common-auto-upgrade self.nixosModules.common-base diff --git a/hosts/rustboro/disko.nix b/hosts/rustboro/disko.nix deleted file mode 100644 index 66b9e72f..00000000 --- a/hosts/rustboro/disko.nix +++ /dev/null @@ -1,56 +0,0 @@ -{ - disko.devices = { - disk = { - vdb = { - type = "disk"; - device = "/dev/sda"; - content = { - type = "gpt"; - partitions = { - ESP = { - size = "1024M"; - type = "EF00"; - content = { - type = "filesystem"; - format = "vfat"; - mountpoint = "/boot"; - mountOptions = [ - "defaults" - ]; - }; - }; - luks = { - size = "100%"; - content = { - type = "luks"; - name = "crypted"; - content = { - type = "btrfs"; - extraArgs = ["-f"]; - subvolumes = { - "/root" = { - mountpoint = "/"; - mountOptions = ["compress=zstd" "noatime"]; - }; - "persist" = { - mountpoint = "/persist"; - mountOptions = ["compress=zstd" "noatime"]; - }; - "/home" = { - mountpoint = "/home"; - mountOptions = ["compress=zstd" "noatime"]; - }; - "/nix" = { - mountpoint = "/nix"; - mountOptions = ["compress=zstd" "noatime"]; - }; - }; - }; - }; - }; - }; - }; - }; - }; - }; -} diff --git a/hosts/slateport/default.nix b/hosts/slateport/default.nix index a8b4d041..403be865 100644 --- a/hosts/slateport/default.nix +++ b/hosts/slateport/default.nix @@ -4,13 +4,13 @@ ... }: { imports = [ - ./disko.nix ./home.nix ./raffauflabs.nix ./secrets.nix + (import ./../../disko/btrfs-subvolumes.nix {disks = ["/dev/sda"];}) + self.inputs.nixhw.nixosModules.common-bluetooth self.inputs.nixhw.nixosModules.common-intel-cpu self.inputs.nixhw.nixosModules.common-intel-gpu - self.inputs.nixhw.nixosModules.common-bluetooth self.inputs.nixhw.nixosModules.common-ssd self.nixosModules.common-auto-upgrade self.nixosModules.common-base diff --git a/secrets/wifi.age b/secrets/wifi.age index b2efadb1..afbcb490 100644 Binary files a/secrets/wifi.age and b/secrets/wifi.age differ