hosts/slate: init

This commit is contained in:
Sean Buckley 2021-06-11 22:54:02 -04:00
parent bb73865b3e
commit 1ba1dbb203
2 changed files with 30 additions and 0 deletions

View file

@ -0,0 +1,24 @@
{ pkgs, ... }:
{
networking.search = [ "bck.me" ];
sconfig = {
profile = "desktop";
gnome = true;
security-tools = 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";
}

6
hosts/slate/default.nix Normal file
View file

@ -0,0 +1,6 @@
{
pkgs = "nixpkgs";
system = "x86_64-linux";
hardware = "physical";
module = ./configuration.nix;
}