gutterman: adjust to new form
she's a bare metal laptop now. happy for her
This commit is contained in:
parent
b6b98a126e
commit
5e43f817a4
2 changed files with 76 additions and 19 deletions
|
|
@ -1,8 +1,8 @@
|
||||||
{ inputs, config, modulesPath, lib, pkgs, ... }:
|
{ inputs, config, pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
(modulesPath + "/virtualisation/proxmox-lxc.nix")
|
./hardware-configuration.nix
|
||||||
|
|
||||||
../../modules/common
|
../../modules/common
|
||||||
|
|
||||||
|
|
@ -15,29 +15,14 @@
|
||||||
../../modules/nixos/services/restic.nix
|
../../modules/nixos/services/restic.nix
|
||||||
../../modules/nixos/services/sops.nix
|
../../modules/nixos/services/sops.nix
|
||||||
|
|
||||||
../../modules/nixos/system/headless.nix
|
../../modules/nixos/system/laptop/auto-cpufreq.nix
|
||||||
../../modules/nixos/system/minimal.nix
|
../../modules/nixos/system/minimal.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
proxmoxLXC.manageHostName = true;
|
|
||||||
|
|
||||||
# enabled by default in the proxmox-lxc module in nixpkgs
|
|
||||||
services.openssh.enable = false;
|
|
||||||
|
|
||||||
boot.loader.systemd-boot.enable = lib.mkForce false;
|
|
||||||
|
|
||||||
services.fstrim.enable = false;
|
|
||||||
|
|
||||||
services.resolved.extraConfig = ''
|
|
||||||
Cache=true
|
|
||||||
CacheFromLocalhost=true
|
|
||||||
'';
|
|
||||||
|
|
||||||
environment.systemPackages = [
|
environment.systemPackages = [
|
||||||
pkgs.btop
|
pkgs.btop
|
||||||
pkgs.steamcmd
|
pkgs.steamcmd
|
||||||
];
|
];
|
||||||
|
|
||||||
nixpkgs.hostPlatform = "x86_64-linux";
|
system.stateVersion = "25.11";
|
||||||
system.stateVersion = "25.05";
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
72
hosts/Gutterman/hardware-configuration.nix
Normal file
72
hosts/Gutterman/hardware-configuration.nix
Normal file
|
|
@ -0,0 +1,72 @@
|
||||||
|
# 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 = [ "xhci_pci" "thunderbolt" "nvme" "usb_storage" "sd_mod" ];
|
||||||
|
boot.initrd.kernelModules = [ ];
|
||||||
|
boot.kernelModules = [ "kvm-intel" ];
|
||||||
|
boot.extraModulePackages = [ ];
|
||||||
|
|
||||||
|
fileSystems."/" =
|
||||||
|
{ device = "/dev/disk/by-uuid/2ee5f08e-05f1-4ac8-bb6d-8946da15937b";
|
||||||
|
fsType = "btrfs";
|
||||||
|
options = [
|
||||||
|
"subvol=root"
|
||||||
|
"compress=zstd"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
fileSystems."/var/lib" =
|
||||||
|
{ device = "/dev/disk/by-uuid/2ee5f08e-05f1-4ac8-bb6d-8946da15937b";
|
||||||
|
fsType = "btrfs";
|
||||||
|
options = [
|
||||||
|
"subvol=var/lib"
|
||||||
|
"compress=zstd"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
fileSystems."/nix" =
|
||||||
|
{ device = "/dev/disk/by-uuid/2ee5f08e-05f1-4ac8-bb6d-8946da15937b";
|
||||||
|
fsType = "btrfs";
|
||||||
|
options = [
|
||||||
|
"subvol=nix"
|
||||||
|
"compress=zstd"
|
||||||
|
"noatime"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
fileSystems."/swap" =
|
||||||
|
{ device = "/dev/disk/by-uuid/2ee5f08e-05f1-4ac8-bb6d-8946da15937b";
|
||||||
|
fsType = "btrfs";
|
||||||
|
options = [
|
||||||
|
"subvol=swap"
|
||||||
|
"noatime"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
fileSystems."/boot" =
|
||||||
|
{ device = "/dev/disk/by-uuid/2877-1C39";
|
||||||
|
fsType = "vfat";
|
||||||
|
options = [ "fmask=0022" "dmask=0022" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
swapDevices = [{
|
||||||
|
device = "/swap/swapfile";
|
||||||
|
size = 8*1024;
|
||||||
|
}];
|
||||||
|
|
||||||
|
hardware.enableRedistributableFirmware = true;
|
||||||
|
services = {
|
||||||
|
thermald.enable = true;
|
||||||
|
fwupd.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||||
|
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue