diff --git a/hosts/fruitbook/configuration.nix b/hosts/fruitbook/configuration.nix index 71b7da1..2618982 100644 --- a/hosts/fruitbook/configuration.nix +++ b/hosts/fruitbook/configuration.nix @@ -20,6 +20,7 @@ sydpkgs.overlay.enable = true; dank-material-shell.enable = true; kdeconnect.enable = true; + upower.enable = true; users.users = [ # "crumb" diff --git a/modules/nixos/upower.nix b/modules/nixos/upower.nix new file mode 100644 index 0000000..ac44ac9 --- /dev/null +++ b/modules/nixos/upower.nix @@ -0,0 +1,12 @@ +{ config, lib, pkgs, ... }: + +let cfg = config.sydnix.upower; +in { + options.sydnix.upower = { + enable = lib.mkEnableOption "UPower"; + }; + + config = lib.mkIf cfg.enable { + services.upower.enable = true; + }; +}