diff options
Diffstat (limited to 'machines')
-rw-r--r-- | machines/x1-pincer.nix | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/machines/x1-pincer.nix b/machines/x1-pincer.nix new file mode 100644 index 0000000..940cd91 --- /dev/null +++ b/machines/x1-pincer.nix @@ -0,0 +1,45 @@ +{ config, lib, pkgs, ... }: +{ + imports = [ + ../config/desktop.nix + ../config/thinkpad.nix + ]; + + networking = { + hostName = "pincer"; + }; + + boot = { + initrd.luks.devices = [ + { + device = "/dev/sda6"; + name = "cryptroot"; + allowDiscards = true; + }; + ]; + + extraModprobeConfig = '' + option iwlwifi swcrypto=1 + ''; + }; + + fileSystems = { + "/boot" = { + mountPoint = "/boot"; + device = "/dev/sda1"; + fsType = "vfat"; + }; + "/" = { + mountPoint = "/"; + device = "/dev/mapper/cryptroot"; + fsType = "btrfs"; + options = ["subvol=active/nixos-root" "discard" "compress=lzo"]; + }; + "/btrfs" = { + mountPoint = "/btrfs"; + device = "/dev/mapper/cryptroot"; + fsType = "btrfs"; + options = ["discard" "compress=lzo"]; + }; + }; +} |