Adds glassbox host

This commit is contained in:
willemml 2024-02-04 13:10:18 -08:00
parent 7db994fba7
commit 440b84f9e7
Signed by: willemml
GPG key ID: C3DE5DF6198DACBD
3 changed files with 225 additions and 124 deletions

View file

@ -72,6 +72,7 @@
x86_64-live = mkNixos "x86_64" [./nixos/hosts/x86_64-live.nix];
aarch64-live = mkNixos "aarch64" [./nixos/hosts/aarch64-live.nix];
glassbox = mkNixos "x86_64" [./nixos/hosts/glassbox.nix];
nixbox = mkNixos "x86_64" [./nixos/hosts/nixbox.nix];
thinkpad = mkNixos "x86_64" [./nixos/hosts/thinkpad.nix];
voyager = mkNixos "aarch64" [./nixos/hosts/voyager];

57
nixos/hosts/glassbox.nix Normal file
View file

@ -0,0 +1,57 @@
# Do not modify this file! It was generated by nixos-generate-config
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
{
config,
lib,
pkgs,
modulesPath,
...
}: {
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
../profiles/hyprland.nix
../profiles/default.nix
../users/willem/home/linux.nix
../modules/zerotier.nix
];
boot.initrd.availableKernelModules = ["vmd" "xhci_pci" "nvme" "ahci" "usbhid" "usb_storage" "sd_mod"];
boot.initrd.kernelModules = [];
boot.kernelModules = ["kvm-intel"];
boot.extraModulePackages = [];
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
hardware.opengl.driSupport = true;
hardware.opengl.enable = true;
hardware.nvidia = {
modesetting.enable = true;
powerManagement.enable = false;
powerManagement.finegrained = false;
open = false;
nvidiaSettings = true;
};
fileSystems."/" = {
device = "/dev/disk/by-uuid/4e9a4d87-4b00-413b-84c0-62e737a012a9";
fsType = "ext4";
};
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/1641-A38E";
fsType = "vfat";
};
swapDevices = [];
networking.hostName = "glassbox";
networking.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
powerManagement.cpuFreqGovernor = lib.mkDefault "performance";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}

View file

@ -6,7 +6,8 @@
...
}: let
torrent_group_id = 987;
in {
in
{
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
../profiles/hyprland.nix
@ -162,3 +163,45 @@ in {
powerManagement.cpuFreqGovernor = lib.mkDefault "performance";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}
# Do not modify this file! It was generated by nixos-generate-config
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
{
config,
lib,
pkgs,
modulesPath,
...
}: {
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = ["vmd" "xhci_pci" "nvme" "ahci" "usbhid" "usb_storage" "sd_mod"];
boot.initrd.kernelModules = [];
boot.kernelModules = ["kvm-intel"];
boot.extraModulePackages = [];
fileSystems."/" = {
device = "/dev/disk/by-uuid/4e9a4d87-4b00-413b-84c0-62e737a012a9";
fsType = "ext4";
};
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/1641-A38E";
fsType = "vfat";
};
swapDevices = [];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's
# still possible to use this option, but it's recommended to use it in conjunction
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
networking.useDHCP = lib.mkDefault true;
# networking.interfaces.enp6s0.useDHCP = lib.mkDefault true;
# networking.interfaces.wlo1.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}