add hosts/manta

This commit is contained in:
Sean Buckley 2021-04-06 15:14:54 -04:00
parent 92263cd97e
commit 66b39dcfb6
2 changed files with 31 additions and 0 deletions

View file

@ -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";
}

View file

@ -30,4 +30,5 @@ let
in in
{ {
vm = mkQemuSystem { name = "vm"; pkgs = nixpkgs; }; vm = mkQemuSystem { name = "vm"; pkgs = nixpkgs; };
manta = mkStandardSystem { name = "manta"; pkgs = nixpkgs; };
} }