diff --git a/hosts/laptop/configuration.nix b/hosts/laptop/configuration.nix index 139a5d6..987b27b 100755 --- a/hosts/laptop/configuration.nix +++ b/hosts/laptop/configuration.nix @@ -24,6 +24,7 @@ ../../hostsModules/laptop/nixos/ollama.nix # llm config ../../modules/nixos/mullvad.nix # vpn config ../../hostsModules/laptop/nixos/autoUpdate.nix # auto update the flakes. Handles notification via libnotify and matrix-commander-rs + ../../hostsModules/laptop/nixos/bootloader.nix ]; @@ -35,11 +36,6 @@ qt.enable = true; - # grub theme - boot.loader.grub = { - theme = inputs.nixos-grub-themes.packages.${pkgs.system}.nixos; # if you want to use nixos grub theme - }; - nix.nixPath = [ "nixpkgs=${inputs.nixpkgs.outPath}" "home-manager=${inputs.home-manager.outPath}" @@ -71,9 +67,7 @@ }; # removes uxterm services.xserver.excludePackages = [pkgs.xterm]; - # Bootloader. - boot.loader.systemd-boot.enable = true; - boot.loader.efi.canTouchEfiVariables = true; + #networking.Name = "nixos"; # Define your hostname. #networking.wireless.enable = true; # Enables wireless support via wpa_supplicant. diff --git a/hostsModules/laptop/nixos/bootloader.nix b/hostsModules/laptop/nixos/bootloader.nix new file mode 100644 index 0000000..f58aaf2 --- /dev/null +++ b/hostsModules/laptop/nixos/bootloader.nix @@ -0,0 +1,15 @@ +{ + inputs, + pkgs, + ... +}: +{ + # grub theme + boot.loader.grub = { + theme = inputs.nixos-grub-themes.packages.${pkgs.system}.nixos; # if you want to use nixos grub theme + }; + + # Bootloader. + boot.loader.systemd-boot.enable = true; + boot.loader.efi.canTouchEfiVariables = true; +}