nixos/devices/srv1/default.nix

34 lines
790 B
Nix
Raw Normal View History

2024-09-14 20:44:45 +08:00
inputs:
{
config =
{
nixos =
{
system =
{
2024-09-15 11:50:38 +08:00
fileSystems =
{
mount = let inherit (inputs.config.nixos.system.cluster) clusterName nodeName; in
{
vfat."/dev/disk/by-partlabel/${clusterName}-${nodeName}-boot" = "/boot";
btrfs."/dev/disk/by-partlabel/${clusterName}-${nodeName}-root" =
{ "/nix" = "/nix"; "/nix/rootfs/current" = "/"; };
};
swap = [ "/nix/swap/swap" ];
rollingRootfs = {};
};
2024-09-14 20:44:45 +08:00
kernel.variant = "xanmod-lts";
gui.enable = true;
};
hardware.cpus = [ "intel" ];
services =
{
snapper.enable = true;
sshd = {};
smartd.enable = true;
};
user.users = [ "chn" ];
};
};
}