initial commit

This commit is contained in:
Henri Dohmen 2025-03-01 18:19:19 +01:00
commit c4dc2e0f36
25 changed files with 558 additions and 0 deletions

13
host/c2/default.nix Normal file
View file

@ -0,0 +1,13 @@
{ mod, ... }: {
networking.hostName = "c2";
imports = with mod; [
collections.pc-common
./hardware-configuration.nix
];
boot.loader.efi.efiSysMountPoint = "/boot/efi";
# ====== DON'T CHANGE ======
system.stateVersion = "25.05";
}

View file

@ -0,0 +1,51 @@
# 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" "rtsx_pci_sdmmc" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/0aa43f8a-a6e8-47aa-800d-b02d98f2cb8a";
fsType = "btrfs";
options = [ "noatime" "compress=zstd:1" "subvol=@" ];
};
fileSystems."/nix" =
{ device = "/dev/disk/by-uuid/0aa43f8a-a6e8-47aa-800d-b02d98f2cb8a";
fsType = "btrfs";
options = [ "noatime" "compress=zstd:1" "subvol=@nix" ];
};
fileSystems."/home" =
{ device = "/dev/disk/by-uuid/0aa43f8a-a6e8-47aa-800d-b02d98f2cb8a";
fsType = "btrfs";
options = [ "noatime" "compress=zstd:1" "subvol=@home" ];
};
fileSystems."/boot/efi" =
{ device = "/dev/disk/by-uuid/829B-BDFC";
fsType = "vfat";
options = [ "fmask=0022" "dmask=0022" ];
};
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.wlp0s20f3.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}