Nix-Config/hosts/servers/dionysus/default.nix

36 lines
766 B
Nix

{ ... }:
{
imports = [
./hardware.nix
];
boot.loader = {
grub.enable = false;
systemd-boot.enable = true;
efi.canTouchEfiVariables = true;
};
boot.kernelParams = [ "processor.max_cstate=2" ];
networking.hostName = "dionysus";
networking.hostId = "f44013cb";
systemd.tmpfiles.rules = [
"w /sys/class/power_supply/BAT0/charge_control_end_threshold - - - - 60"
];
fileSystems."/" = {
device = "/dev/disk/by-uuid/c68b883a-7391-4433-ae9b-7f6db13d21c9";
fsType = "ext4";
};
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/3EE8-2460";
fsType = "vfat";
options = [ "fmask=0022" "dmask=0022" ];
};
swapDevices = [
{ device = "/dev/disk/by-uuid/4fa1c768-3acb-4d75-b849-8712fa56eab3"; }
];
}