os/system/strawberry/core.nix

55 lines
1.1 KiB
Nix
Raw Permalink Normal View History

2023-05-21 21:15:04 +02:00
{ ... }: {
custom = {
2023-06-06 16:05:51 +02:00
gui.enable = true;
2023-06-15 20:39:45 +02:00
backups.enable = true;
2023-05-21 21:15:04 +02:00
};
system.stateVersion = "21.11";
home-manager.users.riley.home.stateVersion = "21.11";
networking = {
2023-06-06 15:38:06 +02:00
hostName = "strawberry";
2023-05-21 21:15:04 +02:00
interfaces."enp9s0".useDHCP = true;
};
boot = {
initrd.availableKernelModules = [
"nvme"
"xhci_pci"
"ahci"
"usbhid"
"usb_storage"
"sd_mod"
];
kernelModules = [ "kvm-amd" ];
binfmt.emulatedSystems = [ "aarch64-linux" ];
loader.systemd-boot = {
enable = true;
editor = false;
configurationLimit = 10;
};
loader.efi.canTouchEfiVariables = true;
initrd.luks.devices.nixos.device = "/dev/disk/by-uuid/6bd51990-1584-422c-94bb-32ea952e5cd2";
};
fileSystems."/" = {
device = "/dev/disk/by-uuid/f3cdd2ab-62ba-4d72-8a28-b3adc0ec3997";
fsType = "ext4";
};
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/A6C8-03F3";
fsType = "vfat";
};
2023-05-22 00:09:59 +02:00
swapDevices = [
{ device = "/dev/nixos/swap"; }
];
services.xserver.videoDrivers = [ "nvidia" ];
hardware.nvidia.modesetting.enable = true;
2023-05-21 21:15:04 +02:00
}