Guix (not working)
This commit is contained in:
parent
d6ec2c7f4d
commit
e99fb387cb
5 changed files with 119 additions and 1 deletions
47
modules/nixos/services/guix/default.nix
Normal file
47
modules/nixos/services/guix/default.nix
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
{
|
||||
lib,
|
||||
pkgs,
|
||||
inputs,
|
||||
namespace,
|
||||
system,
|
||||
target,
|
||||
format,
|
||||
virtual,
|
||||
systems,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
with lib;
|
||||
with lib.${namespace}; let
|
||||
cfg = config.${namespace}.services.guix;
|
||||
impermanence = config.${namespace}.impermanence;
|
||||
persist = impermanence.persistentStorage;
|
||||
in {
|
||||
options.${namespace}.services.guix = with types; {
|
||||
enable = mkBoolOpt false "Enable guix";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
services.guix = {
|
||||
enable = true;
|
||||
gc.enable = true;
|
||||
publish = {
|
||||
enable = true;
|
||||
port = 17333;
|
||||
extraArgs = [
|
||||
"--advertise"
|
||||
"--compression=zstd:6"
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
systemd.tmpfiles.rules = [
|
||||
"d /var/guix 2775 root guixbuild - -"
|
||||
"d /var/guix/daemon-socket 2770 root guixbuild - -"
|
||||
];
|
||||
|
||||
environment.persistence."${persist}/guix".directories = lib.optionals impermanence.enable [
|
||||
"/var/guix"
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
@ -18,7 +18,7 @@ with lib.${namespace}; let
|
|||
extraGroups = ["networkmanager" "touchscreen"];
|
||||
trustedSshKeys = [
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFDdxZ5OyGcfD1JwEa4RWw86HWZ2dKFR0syrRckl7EvG kylekrein@kylekrein-homepc"
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILt+CDDU4gDo12IO2dc50fceIWkn26/NuTq4j25hiGre kylekrein@kylekrein-framework12"
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIF1HsOkUz+E0taJqwpWx/wCfHzHvhL3ia+LxdDj2Gn4T kylekrein@anaconda"
|
||||
];
|
||||
|
||||
cfg = config.${namespace}.users.${username};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue