2024-11-07 19:47:40 +00:00
|
|
|
{
|
2024-11-11 19:43:36 +00:00
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
...
|
2024-11-21 21:27:29 +00:00
|
|
|
}: {
|
2024-11-11 19:43:36 +00:00
|
|
|
config = {
|
|
|
|
pim = {
|
|
|
|
cinnamon.enable = true;
|
2024-11-21 21:27:29 +00:00
|
|
|
sopsKeys = {
|
|
|
|
root = ./nixos.sops.yaml;
|
|
|
|
pim = ./pim.sops.yaml;
|
|
|
|
};
|
2024-11-11 19:43:36 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
facter.reportPath = ./facter.json;
|
|
|
|
networking.hostName = "gamepc";
|
2024-11-21 19:53:35 +00:00
|
|
|
home-manager.users.pim.imports = [./pim.home.nix];
|
2024-11-13 22:03:23 +00:00
|
|
|
programs.steam.enable = true;
|
2024-11-11 19:43:36 +00:00
|
|
|
|
2024-11-19 21:08:41 +00:00
|
|
|
users.users = {
|
|
|
|
root.openssh.authorizedKeys.keys = config.pim.ssh.keys.pim;
|
|
|
|
|
|
|
|
pim = {
|
|
|
|
isNormalUser = true;
|
|
|
|
openssh.authorizedKeys.keys = config.pim.ssh.keys.pim;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2024-11-17 21:59:40 +00:00
|
|
|
deployment = {
|
|
|
|
targetHost = "gamepc";
|
|
|
|
targetUser = "root";
|
2024-11-19 21:08:41 +00:00
|
|
|
tags = ["desktop"];
|
2024-11-17 21:59:40 +00:00
|
|
|
};
|
|
|
|
|
2024-11-11 19:43:36 +00:00
|
|
|
services = {
|
|
|
|
openssh.enable = true;
|
|
|
|
tailscale.enable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
boot.loader.grub = {
|
|
|
|
enable = true;
|
|
|
|
efiSupport = true;
|
|
|
|
efiInstallAsRemovable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
disko.devices.disk = lib.genAttrs ["0" "1"] (name: {
|
|
|
|
type = "disk";
|
|
|
|
device = "/dev/nvme${name}n1";
|
|
|
|
content = {
|
|
|
|
type = "gpt";
|
|
|
|
partitions = {
|
|
|
|
boot = {
|
|
|
|
size = "1M";
|
|
|
|
type = "EF02"; # for grub MBR
|
|
|
|
};
|
|
|
|
ESP = {
|
|
|
|
size = "500M";
|
|
|
|
type = "EF00";
|
|
|
|
content = {
|
|
|
|
type = "mdraid";
|
|
|
|
name = "boot";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
mdadm = {
|
|
|
|
size = "100%";
|
|
|
|
content = {
|
|
|
|
type = "mdraid";
|
|
|
|
name = "raid0";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
});
|
|
|
|
|
|
|
|
disko.devices.mdadm = {
|
|
|
|
boot = {
|
|
|
|
type = "mdadm";
|
|
|
|
level = 1;
|
|
|
|
metadata = "1.0";
|
|
|
|
content = {
|
|
|
|
type = "filesystem";
|
|
|
|
format = "vfat";
|
|
|
|
mountpoint = "/boot";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
raid0 = {
|
|
|
|
type = "mdadm";
|
|
|
|
level = 0;
|
|
|
|
content = {
|
|
|
|
type = "gpt";
|
|
|
|
partitions = {
|
|
|
|
primary = {
|
|
|
|
end = "-4G";
|
|
|
|
content = {
|
|
|
|
type = "filesystem";
|
|
|
|
format = "ext4";
|
|
|
|
mountpoint = "/";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
swap = {
|
|
|
|
size = "100%";
|
|
|
|
content = {
|
|
|
|
type = "swap";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2024-11-07 19:47:40 +00:00
|
|
|
}
|