commit bc80af8659afa7e3dcd8529624b497d5f6ab9a90
parent 7483b71c13a6d0c81ef99ef390f276a7ccece414
Author: Katja Ramona Sophie Kwast (zaphyra) <git@zaphyra.eu>
Date: Sat, 26 Jul 2025 20:02:30 +0200
parent 7483b71c13a6d0c81ef99ef390f276a7ccece414
Author: Katja Ramona Sophie Kwast (zaphyra) <git@zaphyra.eu>
Date: Sat, 26 Jul 2025 20:02:30 +0200
config/nixos/modules/services: add `udisks2`
2 files changed, 25 insertions(+), 0 deletions(-)
diff --git a/config/nixos/modules/presets/graphical/typeNiri.nix b/config/nixos/modules/presets/graphical/typeNiri.nix @@ -21,10 +21,12 @@ in networking.NetworkManager.enable = true; services = { + udisks2.enable = true; gvfs.enable = true; upower.enable = true; power-profiles-daemon.enable = true; + swaylock.enable = true; greetd = { enable = true;
diff --git a/config/nixos/modules/services/udisks2.nix b/config/nixos/modules/services/udisks2.nix @@ -0,0 +1,23 @@ +{ + povSelf, + config, + lib, + ... +}: +let + inherit (lib) types; + cfg = lib.getAttrFromPath povSelf config; + +in +{ + + options.enable = { + type = types.bool; + default = false; + }; + + config = lib.mkIf cfg.enable { + services.udisks2.enable = true; + }; + +}