Compare commits

...

1 Commits

Author SHA1 Message Date
chn
57d55be52a 暂存 2024-03-06 13:10:30 +08:00
3 changed files with 13 additions and 0 deletions

View File

@@ -136,6 +136,7 @@ inputs:
gamemode = { enable = true; drmDevice = 0; };
slurm = { enable = true; cpu = { cores = 16; threads = 2; }; memoryMB = 94208; gpus."4060" = 1; };
xrdp = { enable = true; hostname = [ "pc.chn.moe" ]; };
kubo.enable = true;
};
bugs = [ "xmunet" "backlight" "amdpstate" ];
};

View File

@@ -43,6 +43,7 @@ inputs:
./gamemode.nix
./vikunja.nix
./slurm.nix
./kubo.nix
];
options.nixos.services = let inherit (inputs.lib) mkOption types; in
{

11
modules/services/kubo.nix Normal file
View File

@@ -0,0 +1,11 @@
inputs:
{
options.nixos.services.kubo = let inherit (inputs.lib) mkOption types; in
{
enable = mkOption { type = types.bool; default = false; };
};
config = let inherit (inputs.config.nixos.services) kubo; in inputs.lib.mkIf kubo.enable
{
services.kubo.enable = true;
};
}