feat(mrmeeseeks): create a LACT module
And activate it for mrmeeseeks host
This commit is contained in:
parent
1a7923bd63
commit
86639b7173
4 changed files with 30 additions and 1 deletions
|
@ -73,5 +73,4 @@
|
||||||
};
|
};
|
||||||
hardware.bluetooth.enable = true;
|
hardware.bluetooth.enable = true;
|
||||||
hardware.xpadneo.enable = true;
|
hardware.xpadneo.enable = true;
|
||||||
programs.coolercontrol.enable = true;
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,4 +6,5 @@
|
||||||
gamescope = true;
|
gamescope = true;
|
||||||
};
|
};
|
||||||
config.modules.hardware.laptop.enable = false;
|
config.modules.hardware.laptop.enable = false;
|
||||||
|
config.modules.hardware.lact.enable = true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,6 +3,7 @@ _:
|
||||||
imports = [
|
imports = [
|
||||||
./desktop/sway
|
./desktop/sway
|
||||||
./gaming/steam
|
./gaming/steam
|
||||||
|
./hardware/lact
|
||||||
./hardware/laptop
|
./hardware/laptop
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
28
modules/nixos/hardware/lact/default.nix
Normal file
28
modules/nixos/hardware/lact/default.nix
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
{ lib, config, pkgs, ... }:
|
||||||
|
with lib;
|
||||||
|
let
|
||||||
|
cfg = config.modules.hardware.lact;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options.modules.hardware.lact = {
|
||||||
|
enable = mkEnableOption "Install LACT daemon";
|
||||||
|
|
||||||
|
};
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
|
||||||
|
# Enable Lact (testing purpose for now)
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
lact
|
||||||
|
];
|
||||||
|
|
||||||
|
systemd.services.lact = {
|
||||||
|
description = "AMDGPU Control Daemon";
|
||||||
|
after = ["multi-user.target"];
|
||||||
|
wantedBy = ["multi-user.target"];
|
||||||
|
serviceConfig = {
|
||||||
|
ExecStart = "${pkgs.lact}/bin/lact daemon";
|
||||||
|
};
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue