This commit is contained in:
Steph 2025-01-26 19:51:12 +01:00
parent 3abf001fe0
commit 7698a6b3af
3 changed files with 34 additions and 19 deletions

View File

@ -12,19 +12,25 @@
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
networking.hostName = "iota";
fileSystems."/" =
{ device = "/dev/disk/by-uuid/a320b669-d51a-4ef5-a8d2-8c3477eb72d0";
{ device = "/dev/disk/by-uuid/d3f36be6-117b-4d3c-ac3d-69ad7f1c0e20";
fsType = "ext4";
};
fileSystems."/boot/efi" =
{ device = "/dev/disk/by-uuid/6F7E-4B5B";
boot.initrd.luks.devices."luks-68d48bec-28f9-4474-9e56-b650a7689efd".device = "/dev/disk/by-uuid/68d48bec-28f9-4474-9e56-b650a7689efd";
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/77CE-3A6F";
fsType = "vfat";
options = [ "fmask=0077" "dmask=0077" ];
};
swapDevices =
[ { device = "/dev/disk/by-uuid/c463d0fa-ea32-4b31-ac09-935c3cce9331"; }
[ { device = "/dev/disk/by-uuid/076c48e7-018e-49b9-a8b4-a8e49b160d5d"; }
];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
@ -32,20 +38,32 @@
# 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.enp0s20f0u8u4.useDHCP = lib.mkDefault true;
# networking.interfaces.wlp1s0.useDHCP = lib.mkDefault true;
networking.hostName = "iota"; # Define your hostname.
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
# Bootloader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
boot.loader.efi.efiSysMountPoint = "/boot/efi";
boot.loader.systemd-boot.extraEntries = {
"ubuntu.conf" = ''
title Ubuntu
linux /EFI/ubuntu/shimx64.efi
'';
boot.plymouth = {
enable = true;
};
# 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;
boot.initrd.luks.devices."luks-212c9297-10d3-4943-8763-0dc86f337edb".device = "/dev/disk/by-uuid/212c9297-10d3-4943-8763-0dc86f337edb";
}

View File

@ -61,7 +61,7 @@
services.printing.enable = true;
hardware.pulseaudio.enable = false;
services.pulseaudio.enable = false;
security.rtkit.enable = true;
services.pipewire = {
enable = true;

View File

@ -53,8 +53,6 @@
toupper = "tr [:lower:] [:upper:]";
tolower = "tr [:upper:] [:lower:]";
rebuild = if (os == "linux") then ''
sudo nix-collect-garbage --delete-older-than 30d &&
sudo nix-env -p /nix/var/nix/profiles/system --delete-generations +10 &&
cd $HOME/.local/os &&
git pull &&
nix flake update --commit-lock-file &&
@ -64,7 +62,6 @@
git push &&
cd -
'' else ''
nix-collect-garbage --delete-older-than 30d &&
cd $HOME/.local/os &&
git pull &&
nix flake update --commit-lock-file &&