diff --git a/hosts/hypercube/configuration.nix b/hosts/hypercube/configuration.nix new file mode 100644 index 0000000..a227c99 --- /dev/null +++ b/hosts/hypercube/configuration.nix @@ -0,0 +1,32 @@ +{ pkgs, ... }: +{ + sconfig = { + gnome = true; + profile = "desktop"; + security-tools = true; + }; + + networking.search = [ "bck.me" ]; + + environment.systemPackages = with pkgs; [ + wine + vmware-horizon-client + ]; + + services.openssh.enable = true; + + boot = { + loader.systemd-boot.enable = true; + loader.efi.canTouchEfiVariables = true; + kernelParams = map (x: "video=DP-${x}:1280x720@60") [ "0" "1" "2" ]; + initrd.luks.devices.cryptroot1 = { allowDiscards = true; device = "/dev/disk/by-partlabel/_root1"; }; + initrd.luks.devices.cryptroot2 = { allowDiscards = true; device = "/dev/disk/by-partlabel/_root2"; }; + }; + + fileSystems = { + "/" = { device = "/dev/disk/by-label/_root"; fsType = "btrfs"; options = [ "discard" "compress=zstd:1" ]; }; + "/boot" = { device = "/dev/disk/by-partlabel/_esp"; fsType = "vfat"; }; + }; + + system.stateVersion = "21.05"; +} diff --git a/hosts/hypercube/default.nix b/hosts/hypercube/default.nix new file mode 100644 index 0000000..14c0a47 --- /dev/null +++ b/hosts/hypercube/default.nix @@ -0,0 +1,6 @@ +{ + pkgs = "nixpkgs"; + system = "x86_64-linux"; + hardware = "physical"; + module = ./configuration.nix; +}