From 9046364d4c2e46041a7dccd2afa5107736356c4a Mon Sep 17 00:00:00 2001 From: joy Date: Sun, 13 Oct 2024 19:09:48 +0200 Subject: [PATCH] lact --- hosts/desktop/default.nix | 1 + modules/system/default.nix | 1 + modules/system/lact/default.nix | 16 ++++++++++++++++ 3 files changed, 18 insertions(+) create mode 100644 modules/system/lact/default.nix diff --git a/hosts/desktop/default.nix b/hosts/desktop/default.nix index 45e8046..76911f3 100644 --- a/hosts/desktop/default.nix +++ b/hosts/desktop/default.nix @@ -3,6 +3,7 @@ openrgb.enable = true; games.enable = true; + lact.enable = true; imports = [ ./hardware.nix diff --git a/modules/system/default.nix b/modules/system/default.nix index 6c240eb..6b67be2 100644 --- a/modules/system/default.nix +++ b/modules/system/default.nix @@ -4,6 +4,7 @@ ./homemanger ./xdg ./networking + ./lact ./misc ]; } diff --git a/modules/system/lact/default.nix b/modules/system/lact/default.nix new file mode 100644 index 0000000..ff6880b --- /dev/null +++ b/modules/system/lact/default.nix @@ -0,0 +1,16 @@ +{ + lib, + config, + pkgs, + ... +}: { + options = { + lact.enable = lib.mkEnableOption ""; + }; + + config = lib.mkIf config.lact.enable { + environment.systemPackages = with pkgs; [lact]; + systemd.packages = with pkgs; [lact]; + systemd.services.lactd.wantedBy = ["multi-user.target"]; + }; +}