nixos-config/hosts/slate/default.nix
2022-06-17 13:06:41 -04:00

24 lines
740 B
Nix

{ pkgs, ... }:
{
sconfig = {
profile = "desktop";
gnome = true;
};
boot = {
loader.systemd-boot.enable = true;
loader.efi.canTouchEfiVariables = true;
initrd.luks.devices.cryptroot = { device = "/dev/disk/by-partlabel/_luks"; };
};
hardware.cpu.intel.updateMicrocode = true;
hardware.enableRedistributableFirmware = true;
fileSystems = {
"/" = { device = "/dev/mapper/cryptroot"; fsType = "btrfs"; options = [ "subvol=/os" "discard" "compress=zstd" ]; };
"/home" = { device = "/dev/mapper/cryptroot"; fsType = "btrfs"; options = [ "subvol=/home" "discard" "compress=zstd" ]; };
"/boot" = { device = "/dev/disk/by-partlabel/_esp"; fsType = "vfat"; };
};
system.stateVersion = "21.05";
}