From 552ae67f6a7dcfed8b1a3dd35220a24bcb0f7432 Mon Sep 17 00:00:00 2001 From: Semere Meharena Mebrahtom Date: Tue, 21 Jul 2026 12:36:35 +0200 Subject: [PATCH] added back simple desktop stack as alternatives --- modules/default.nix | 5 +++++ modules/desktop.nix | 5 +++++ modules/fnott.nix | 29 +++++++++++++++++++++++++++++ modules/fuzzel.nix | 38 ++++++++++++++++++++++++++++++++++++++ modules/niri.nix | 6 +++++- modules/starship.nix | 2 +- modules/swayidle.nix | 23 +++++++++++++++++++++++ modules/swaylock.nix | 26 ++++++++++++++++++++++++++ modules/wlsunset.nix | 21 +++++++++++++++++++++ 9 files changed, 153 insertions(+), 2 deletions(-) create mode 100644 modules/fnott.nix create mode 100644 modules/fuzzel.nix create mode 100644 modules/swayidle.nix create mode 100644 modules/swaylock.nix create mode 100644 modules/wlsunset.nix diff --git a/modules/default.nix b/modules/default.nix index 90d4e55..3498e75 100644 --- a/modules/default.nix +++ b/modules/default.nix @@ -27,6 +27,11 @@ allModules self.nixosModules.zen-browser self.nixosModules.niri self.nixosModules.noctalia + # self.nixosModules.fuzzel + # self.nixosModules.fnott + # self.nixosModules.swaylock + # self.nixosModules.swayidle + # self.nixosModules.wlsunset ]; }; diff --git a/modules/desktop.nix b/modules/desktop.nix index 1db2c9d..917caf7 100644 --- a/modules/desktop.nix +++ b/modules/desktop.nix @@ -29,6 +29,10 @@ }; hardware.graphics.enable = true; + hardware.bluetooth = { + enable = true; + powerOnBoot = false; + }; security.polkit.enable = true; programs.dconf.enable = true; @@ -55,6 +59,7 @@ brightnessctl wl-clipboard libnotify + xwayland-satellite ]; home-manager.users."${userVars.username}" = { diff --git a/modules/fnott.nix b/modules/fnott.nix new file mode 100644 index 0000000..a2d06ba --- /dev/null +++ b/modules/fnott.nix @@ -0,0 +1,29 @@ +{ + config, + lib, + pkgs, + userVars, + ... +}: + +{ + home-manager.users."${userVars.username}" = { + services.fnott = { + enable = true; + settings = { + main = { + background = "1e1e2eff"; + border-color = "89b4faff"; + border-size = 2; + border-radius = 4; + title-font = "JetBrainsMono Nerd Font:size=13:weight=bold"; + title-color = "cdd6f4ff"; + summary-font = "JetBrainsMono Nerd Font:size=13"; + summary-color = "cdd6f4ff"; + body-font = "JetBrainsMono Nerd Font:size=13"; + body-color = "cdd6f4ff"; + }; + }; + }; + }; +} diff --git a/modules/fuzzel.nix b/modules/fuzzel.nix new file mode 100644 index 0000000..74d390b --- /dev/null +++ b/modules/fuzzel.nix @@ -0,0 +1,38 @@ +{ + config, + lib, + pkgs, + userVars, + ... +}: + +{ + home-manager.users."${userVars.username}" = { + programs.fuzzel = { + enable = true; + settings = { + main = { + font = "JetBrainsMono Nerd Font:size=13"; + dpi-aware = "auto"; + width = 40; + line-height = 18; + fields = "name,generic,comment,categories,filename,keywords"; + terminal = "foot"; + }; + colors = { + background = "1e1e2eff"; + text = "cdd6f4ff"; + match = "f38ba8ff"; + selection = "585b70ff"; + selection-text = "cdd6f4ff"; + selection-match = "f38ba8ff"; + border = "89b4faff"; + }; + border = { + width = 2; + radius = 4; + }; + }; + }; + }; +} diff --git a/modules/niri.nix b/modules/niri.nix index fdb2d5b..2316c08 100644 --- a/modules/niri.nix +++ b/modules/niri.nix @@ -113,7 +113,7 @@ XF86AudioRaiseVolume { spawn "noctalia" "msg" "volume-up"; } XF86AudioLowerVolume { spawn "noctalia" "msg" "volume-down"; } - XF86AudioMute { spawn "noctalia" "msg" "volume-mute-toggle"; } + XF86AudioMute { spawn "noctalia" "msg" "volume-mute"; } XF86MonBrightnessUp { spawn "noctalia" "msg" "brightness-up"; } XF86MonBrightnessDown { spawn "noctalia" "msg" "brightness-down"; } @@ -131,6 +131,10 @@ match app-id="^foot$" open-on-workspace "term" } + + switch-events { + lid-close { spawn "noctalia" "msg" "session" "lock-and-suspend"; } + } ''; }; } diff --git a/modules/starship.nix b/modules/starship.nix index d839fb8..cff4f61 100644 --- a/modules/starship.nix +++ b/modules/starship.nix @@ -60,7 +60,7 @@ staged = "+\${count}"; modified = "!\${count}"; untracked = "?\${count}"; - stashed = "\$"; + stashed = "\\$"; }; nix_shell = { diff --git a/modules/swayidle.nix b/modules/swayidle.nix new file mode 100644 index 0000000..ae9cc6a --- /dev/null +++ b/modules/swayidle.nix @@ -0,0 +1,23 @@ +{ + config, + lib, + pkgs, + userVars, + ... +}: + +{ + home-manager.users."${userVars.username}" = { + services.swayidle = { + enable = true; + events = { + before-sleep = "${pkgs.swaylock}/bin/swaylock -f"; + lock = "${pkgs.swaylock}/bin/swaylock -f"; + }; + timeouts = [ + { timeout = 300; command = "${pkgs.swaylock}/bin/swaylock -f"; } + { timeout = 600; command = "niri msg action power-off-monitors"; } + ]; + }; + }; +} diff --git a/modules/swaylock.nix b/modules/swaylock.nix new file mode 100644 index 0000000..17027d4 --- /dev/null +++ b/modules/swaylock.nix @@ -0,0 +1,26 @@ +{ + config, + lib, + pkgs, + userVars, + ... +}: + +{ + security.pam.services.swaylock = {}; + + home-manager.users."${userVars.username}" = { + programs.swaylock = { + enable = true; + settings = { + color = "1e1e2e"; + ring-color = "89b4fa"; + key-hl-color = "f38ba8"; + line-color = "00000000"; + inside-color = "1e1e2e"; + separator-color = "00000000"; + text-color = "cdd6f4"; + }; + }; + }; +} diff --git a/modules/wlsunset.nix b/modules/wlsunset.nix new file mode 100644 index 0000000..264f5f1 --- /dev/null +++ b/modules/wlsunset.nix @@ -0,0 +1,21 @@ +{ + config, + lib, + pkgs, + userVars, + ... +}: + +{ + home-manager.users."${userVars.username}" = { + services.wlsunset = { + enable = true; + latitude = "52.52"; + longitude = "13.40"; + temperature = { + day = 6500; + night = 4000; + }; + }; + }; +}