bootloader and networking

This commit is contained in:
2026-10-17 14:18:33 +01:00
parent af5bbd7a36
commit 19f28a9197
3 changed files with 36 additions and 0 deletions

17
modules/bootloader.nix Normal file
View File

@@ -0,0 +1,17 @@
{...}: {
flake.nixosModules.bootloader = {pkgs, ...}: {
boot = {
loader = {
timeout = 2;
efi = {
canTouchEfiVariables = true;
};
grub = {
efiSupport = true;
device = "nodev";
};
};
kernelPackages = pkgs.linuxPackages_latest;
};
};
}

View File

@@ -7,6 +7,8 @@
modules = with self.nixosModules; [
system
user
networking
bootloader
];
};
}

17
modules/networking.nix Normal file
View File

@@ -0,0 +1,17 @@
{...}: {
flake.nixosModules.networking = {...}: {
networking = {
networkmanager = {
enable = true;
dns = "none";
};
nameservers = [
"1.1.1.1"
"8.8.8.8"
];
firewall.enable = false;
};
systemd.services.NetworkManager-wait-online.enable = false;
};
}