Add config for katmai

This commit is contained in:
John Locke 2024-03-19 08:04:49 -07:00
parent 44da5b931e
commit adb836f749
3 changed files with 89 additions and 0 deletions

View file

@ -15,5 +15,10 @@
modules = [ ./hosts/desktop/valhalla/configuration.nix ]; modules = [ ./hosts/desktop/valhalla/configuration.nix ];
}; };
# environment.systemPackages = [nixos-needsreboot.packages.${nixpkgs.system}.default]; # environment.systemPackages = [nixos-needsreboot.packages.${nixpkgs.system}.default];
nixosConfigurations.katmai = nixpkgs.lib.nixosSystem {
# NOTE: Change this to aarch64-linux if you are on ARM
system = "x86_64-linux";
modules = [ ./hosts/desktop/katmai/configuration.nix ];
};
}; };
} }

View file

@ -0,0 +1,40 @@
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help).
{ config, pkgs, ... }:
{
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
../../../desktop
../../../desktop/office.nix
../../../users/owners.nix
];
networking.hostName = "katmai"; # Define your hostname.
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions
# on your system were taken. Its perfectly fine and recommended to leave
# this value at the release version of the first install of this system.
# Before changing this value read the documentation for this option
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
system.stateVersion = "23.11"; # Did you read the comment?
# Automatic Garbage Collection
nix.gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 14d";
};
# Auto system update
system.autoUpgrade = {
enable = true;
};
}

View file

@ -0,0 +1,44 @@
# 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" "nvme" "usb_storage" "sd_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/ebd125c4-ab78-4604-a0be-826d0a3d0c03";
fsType = "btrfs";
options = [ "subvol=@" ];
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/ED13-F512";
fsType = "vfat";
};
fileSystems."/home" =
{ device = "/dev/disk/by-uuid/f5dd6012-e88b-444d-99f6-4a468493bd13";
fsType = "xfs";
};
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.enp0s31f6.useDHCP = lib.mkDefault true;
# networking.interfaces.wlp3s0.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}