nixos-config/hosts/lenny/default.nix

50 lines
1.3 KiB
Nix
Raw Normal View History

2022-03-07 16:10:35 +00:00
{ config, lib, pkgs, ... }:
2021-11-09 12:55:06 +00:00
{
services = {
openssh.enable = true;
};
users.mutableUsers = false;
users.users.root.passwordFile = "/nix/persist/shadow_sean";
users.users.sean.passwordFile = "/nix/persist/shadow_sean";
2021-12-04 02:45:41 +00:00
environment.etc =
2022-03-07 16:10:35 +00:00
lib.genAttrs
2021-12-04 02:45:41 +00:00
[
"machine-id"
"NetworkManager/system-connections"
"ssh/ssh_host_ed25519_key"
"ssh/ssh_host_rsa_key"
2022-03-07 16:10:35 +00:00
]
(name: { source = "/nix/persist/etc/${name}"; });
2021-11-09 12:55:06 +00:00
sconfig = {
gnome = true;
profile = "desktop";
2022-03-03 15:46:24 +00:00
horizon.enable = true;
2022-05-11 15:50:52 +00:00
wg-home.enable = true;
2021-11-09 12:55:06 +00:00
};
2022-05-10 14:06:07 +00:00
zramSwap.memoryPercent = 100;
2022-02-16 05:55:23 +00:00
swapDevices = [{
device = "/dev/disk/by-partuuid/e54894a7-f322-482c-b8f2-8e706f02f316";
randomEncryption.enable = true;
}];
2021-11-09 12:55:06 +00:00
boot = {
loader.systemd-boot.enable = true;
loader.efi.canTouchEfiVariables = true;
};
fileSystems = {
2021-12-15 06:25:29 +00:00
"/" = { device = "tmpfs"; fsType = "tmpfs"; options = [ "mode=755" "size=4G" ]; };
2021-11-09 12:55:06 +00:00
"/nix" = { device = "lenny/locker/nix"; fsType = "zfs"; };
"/home" = { device = "lenny/locker/home"; fsType = "zfs"; };
"/boot" = { device = "/dev/disk/by-partlabel/_esp"; fsType = "vfat"; };
2021-12-05 00:58:08 +00:00
"/var/log" = { device = "/nix/persist/var/log"; noCheck = true; options = [ "bind" ]; };
};
2021-11-09 12:55:06 +00:00
system.stateVersion = "21.11";
}