mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-12-21 19:24:15 +00:00
22 lines
672 B
Nix
22 lines
672 B
Nix
{ pkgs, ... }:
|
|
{
|
|
sconfig = {
|
|
profile = "desktop";
|
|
hardware = "physical";
|
|
gnome = true;
|
|
};
|
|
|
|
boot = {
|
|
loader.systemd-boot.enable = true;
|
|
loader.efi.canTouchEfiVariables = true;
|
|
initrd.luks.devices.cryptroot = { device = "/dev/disk/by-partlabel/_luks"; };
|
|
};
|
|
|
|
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";
|
|
}
|