Files
sydnix/users/crumb/default.nix
Madeleine Sydney 1bdcc3ecbc fix(syncthing): Persist Syncthing state
Previously, the device ID would be lost and consequently regenerated on boot.
This means that previous connections will recognise it as a new, different
device.
2025-02-15 13:29:44 -07:00

34 lines
764 B
Nix
Executable File

{
systemConfiguration = { config, ... }: {
isNormalUser = true;
# TODO: Don't hard-code `persist`. Use
# config.sydnix.impermanence.persistGroupName.
extraGroups = [ "wheel" "persist" ];
initialHashedPassword =
"$y$j9T$aEFDDwdTZbAc6VQRXrkBJ0$K8wxTGTWDihyX1wxJ.ZMH//wmQFfrGGUkLkxIU0Lyq8";
openssh.authorizedKeys.keyFiles = [
../../public-keys/crumb-at-guix-rebound.pub
];
};
homeConfiguration = { config, lib, pkgs, ... }: {
imports = [
./programs.nix
./files.nix
];
xdg.enable = true;
sydnix = {
sops = {
enable = true;
keyFile = "/persist/vault/${config.home.username}/keys/melbourne";
};
};
# Don't touch!
home.stateVersion = "18.09";
};
}