50 lines
1.0 KiB
Nix
Executable File
50 lines
1.0 KiB
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";
|
|
};
|
|
|
|
homeConfiguration = { config, lib, pkgs, ... }: {
|
|
imports = [
|
|
./programs.nix
|
|
./files.nix
|
|
];
|
|
|
|
sydnix = {
|
|
sops = {
|
|
enable = true;
|
|
keyFile = "/persist/user-files/${config.home.username}/key.txt";
|
|
secrets = {
|
|
example-user-key = {};
|
|
};
|
|
};
|
|
|
|
impermanence = {
|
|
enable = true;
|
|
directories = [
|
|
"Music"
|
|
"Pictures"
|
|
"Documents"
|
|
"Videos"
|
|
".ssh"
|
|
{
|
|
directory = ".local/share/Steam";
|
|
method = "symlink";
|
|
}
|
|
".passage"
|
|
];
|
|
};
|
|
};
|
|
|
|
home.packages = [
|
|
];
|
|
|
|
# Don't touch!
|
|
home.stateVersion = "18.09";
|
|
};
|
|
}
|