From 66b39dcfb6f13316610e07954bb28a8e050e4770 Mon Sep 17 00:00:00 2001 From: Sean Buckley Date: Tue, 6 Apr 2021 15:14:54 -0400 Subject: [PATCH] add hosts/manta --- hosts/configuration_manta.nix | 30 ++++++++++++++++++++++++++++++ hosts/default.nix | 1 + 2 files changed, 31 insertions(+) create mode 100644 hosts/configuration_manta.nix diff --git a/hosts/configuration_manta.nix b/hosts/configuration_manta.nix new file mode 100644 index 0000000..d506eb6 --- /dev/null +++ b/hosts/configuration_manta.nix @@ -0,0 +1,30 @@ +{ pkgs, ... }: +{ + environment.systemPackages = [ pkgs.vmware-horizon-client ]; + + services.tlp.enable = true; + services.openssh.enable = true; + + networking.hostName = "manta"; + 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/_root"; allowDiscards = true; }; + }; + + fileSystems = { + "/" = { device = "/dev/mapper/cryptroot"; fsType = "btrfs"; options = [ "subvol=/os" "compress=zstd" "discard" ]; }; + "/home" = { device = "/dev/mapper/cryptroot"; fsType = "btrfs"; options = [ "subvol=/home" "compress=zstd" "discard" ]; }; + "/boot" = { device = "/dev/disk/by-partlabel/_esp"; fsType = "vfat"; }; + }; + + system.stateVersion = "20.09"; +} diff --git a/hosts/default.nix b/hosts/default.nix index 99cb60f..ada0b5f 100644 --- a/hosts/default.nix +++ b/hosts/default.nix @@ -30,4 +30,5 @@ let in { vm = mkQemuSystem { name = "vm"; pkgs = nixpkgs; }; + manta = mkStandardSystem { name = "manta"; pkgs = nixpkgs; }; }