nixos-conf/hosts/syncthing.nix

39 lines
746 B
Nix

{ lib, ... }:
{
custom = {
vm.enable = true;
users.vili.enable = true;
syncthing.enable = true;
};
swapDevices = [
{
device = "/var/lib/swapfile";
size = 2 * 1024;
}
];
users.users.vili.hashedPasswordFile = lib.mkForce null;
sops.secrets = lib.mkForce { };
system.stateVersion = "22.11";
fileSystems."/" = {
device = "/dev/disk/by-uuid/895d2004-3bd2-4bc5-bb46-62f94a0a68e3";
fsType = "ext4";
};
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/38AD-EFDC";
fsType = "vfat";
options = [
"fmask=0022"
"dmask=0022"
];
};
fileSystems."/home/vili" = {
device = "/dev/disk/by-uuid/d08136ed-7950-412c-bcf6-7c6e9f015e47";
fsType = "ext4";
};
}