flake: update configuration for tower

This commit is contained in:
Charlie Root 2025-03-02 21:17:17 +01:00
commit 6e5f6c1a59
Signed by: faukah
SSH key fingerprint: SHA256:jpYIt4Vkz1NBTQcks/N9OPTfTFxE6KF2W/rV7hrfrIw
5 changed files with 47 additions and 23 deletions

View file

@ -1,16 +1,14 @@
{
config = {
fileSystems = {
"/boot" = {
device = "/dev/disk/by-uuid/3480-C94B";
fsType = "vfat";
};
# root on tmpfs
"/" = {
device = "/dev/disk/by-uuid/3dde50ca-440d-4d46-974e-efc623e53703";
fsType = "btrfs";
options = ["compress=zstd" "noatime"];
};
config.fileSystems = {
"/boot" = {
device = "/dev/disk/by-uuid/3480-C94B";
fsType = "vfat";
};
"/" = {
device = "/dev/disk/by-uuid/3a781f2e-290a-4609-9035-a93374459def";
fsType = "ext4";
options = ["noatime" "compress=zstd"];
};
};
}

View file

@ -1,24 +1,23 @@
{
config,
lib,
modulesPath,
...
}: {
imports = [(modulesPath + "/installer/scan/not-detected.nix")];
imports = [
(modulesPath + "/profiles/qemu-guest.nix")
];
boot.initrd.availableKernelModules = ["xhci_pci" "ahci" "nvme" "usbhid" "sd_mod"];
boot.initrd.availableKernelModules = ["xhci_pci" "virtio_scsi" "sr_mod"];
boot.initrd.kernelModules = [];
boot.kernelModules = [];
boot.extraModulePackages = [];
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.enp4s0.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode =
lib.mkDefault config.hardware.enableRedistributableFirmware;
# networking.interfaces.enp7s0.useDHCP = lib.mkDefault true;
}