os/hardware-configuration/tau.nix

79 lines
2.7 KiB
Nix
Raw Normal View History

2022-07-20 21:00:50 +02:00
# 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")
];
2024-07-01 22:40:58 +02:00
boot.initrd.availableKernelModules = [ "xhci_pci" "nvme" "usb_storage" "usbhid" "sd_mod" ];
2022-07-20 21:00:50 +02:00
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
2024-07-01 22:40:58 +02:00
{ device = "/dev/disk/by-uuid/59bdfb89-0394-4a11-b8d3-939c1f543aa3";
2022-07-20 21:00:50 +02:00
fsType = "ext4";
};
2024-07-01 22:40:58 +02:00
boot.initrd.luks.devices."luks-5ae87f71-0b71-4a1c-90e7-e41dad41965c".device = "/dev/disk/by-uuid/5ae87f71-0b71-4a1c-90e7-e41dad41965c";
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/6CDA-4F23";
2022-07-20 21:00:50 +02:00
fsType = "vfat";
2024-07-01 22:40:58 +02:00
options = [ "fmask=0022" "dmask=0022" ];
2022-07-20 21:00:50 +02:00
};
swapDevices =
2024-07-01 22:40:58 +02:00
[ { device = "/dev/disk/by-uuid/b436250d-3a24-4e9e-bf79-b638eb083119"; }
2022-07-20 21:00:50 +02:00
];
# 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;
2022-09-16 22:01:23 +02:00
# networking.interfaces.enp0s31f6.useDHCP = lib.mkDefault true;
# networking.interfaces.wlp58s0.useDHCP = lib.mkDefault true;
# networking.interfaces.wwp0s20f0u6i12.useDHCP = lib.mkDefault true;
2022-07-20 21:00:50 +02:00
2024-07-01 22:40:58 +02:00
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
2022-07-20 21:00:50 +02:00
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
2022-09-18 18:16:34 +02:00
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
2024-07-01 22:40:58 +02:00
boot.initrd.luks.devices."luks-d86d9bcd-df3d-4fbe-b0c0-66297852fc46".device = "/dev/disk/by-uuid/d86d9bcd-df3d-4fbe-b0c0-66297852fc46";
networking.hostName = "tau"; # Define your hostname.
2024-12-11 22:28:02 +01:00
boot.plymouth = {
enable = true;
theme = "pixels";
themePackages = with pkgs; [
# By default we would install all themes
(adi1090x-plymouth-themes.override {
selected_themes = [ "pixels" ];
})
];
};
# Enable "Silent Boot"
boot.consoleLogLevel = 0;
boot.initrd.verbose = false;
boot.kernelParams = [
"quiet"
"splash"
"boot.shell_on_fail"
"loglevel=3"
"rd.systemd.show_status=false"
"rd.udev.log_level=3"
"udev.log_priority=3"
];
# Hide the OS choice for bootloaders.
# It's still possible to open the bootloader list by pressing any key
# It will just not appear on screen unless a key is pressed
boot.loader.timeout = 0;
2022-07-20 21:00:50 +02:00
}