flake: update configuration for tower
This commit is contained in:
parent
b8cd82aa85
commit
6e5f6c1a59
5 changed files with 47 additions and 23 deletions
|
@ -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"];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue