From 1ba1dbb203965314f0ac153e6a2b3eed952f0f73 Mon Sep 17 00:00:00 2001 From: Sean Buckley Date: Fri, 11 Jun 2021 22:54:02 -0400 Subject: [PATCH] hosts/slate: init --- hosts/slate/configuration.nix | 24 ++++++++++++++++++++++++ hosts/slate/default.nix | 6 ++++++ 2 files changed, 30 insertions(+) create mode 100644 hosts/slate/configuration.nix create mode 100644 hosts/slate/default.nix diff --git a/hosts/slate/configuration.nix b/hosts/slate/configuration.nix new file mode 100644 index 0000000..97fa9dd --- /dev/null +++ b/hosts/slate/configuration.nix @@ -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"; +} diff --git a/hosts/slate/default.nix b/hosts/slate/default.nix new file mode 100644 index 0000000..14c0a47 --- /dev/null +++ b/hosts/slate/default.nix @@ -0,0 +1,6 @@ +{ + pkgs = "nixpkgs"; + system = "x86_64-linux"; + hardware = "physical"; + module = ./configuration.nix; +}