sops n stuff

This commit is contained in:
mjallen18
2025-03-19 16:11:48 -05:00
parent 172d4a37a8
commit d402c32813
11 changed files with 432 additions and 473 deletions

View File

@@ -6,6 +6,7 @@
}:
let
cfg = config.share.hardware.amd;
pkgsVersion = pkgs.unstable;
in
{
imports = [ ./options.nix ];
@@ -14,7 +15,10 @@ in
boot.kernelParams = [ (if cfg.enable then "amdgpu.ppfeaturemask=0xffffffff" else null) ];
# Configure programs
programs.corectrl.enable = cfg.corectrl.enable;
programs.corectrl = {
enable = cfg.corectrl.enable;
package = pkgsVersion.corectrl;
};
# Configure environment
environment = {
@@ -32,8 +36,8 @@ in
graphics = {
enable = true;
enable32Bit = true;
# extraPackages = [ pkgs.unstable.mesa ];
# extraPackages32 = [ pkgs.unstable.pkgsi686Linux.mesa ];
# extraPackages = [ pkgsVersion.mesa ];
# extraPackages32 = [ pkgsVersion.pkgsi686Linux.mesa ];
};
};
@@ -56,9 +60,9 @@ in
# nixpkg is broken so need to manually define
systemd.services.lactd = lib.mkIf cfg.lact.enable {
description = "AMDGPU Control Daemon";
path = [
pkgs.bash
pkgs.lact
path = with pkgsVersion; [
bash
lact
];
script = ''
lact daemon
@@ -69,7 +73,7 @@ in
# Configure environment
environment = {
systemPackages = lib.mkIf cfg.lact.enable [ pkgs.lact ];
systemPackages = with pkgsVersion; lib.mkIf cfg.lact.enable [ lact ];
};
};
}