331 current 1970-01-01 01:00:00 23.11.20240518.e7cc617 6.6.30-rt30 *
This commit is contained in:
parent
2072020b9c
commit
54b53e5026
@ -32,10 +32,6 @@
|
|||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
# Bootloader.
|
|
||||||
boot.loader.systemd-boot.enable = true;
|
|
||||||
boot.loader.efi.canTouchEfiVariables = true;
|
|
||||||
|
|
||||||
networking.hostName = "MaxNixosLaptop"; # Define your hostname.
|
networking.hostName = "MaxNixosLaptop"; # Define your hostname.
|
||||||
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
|
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
|
||||||
|
|
||||||
|
21
modules/nixos/bootloader.nix
Normal file
21
modules/nixos/bootloader.nix
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
{
|
||||||
|
lib,
|
||||||
|
config,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
cfg = config.myConfig.bootloader;
|
||||||
|
in {
|
||||||
|
options.myConfig.bootloader = {
|
||||||
|
enable = lib.mkEnableOption "enable systemd bootloader";
|
||||||
|
};
|
||||||
|
|
||||||
|
config = lib.mkIf cfg.enable {
|
||||||
|
boot.loader = {
|
||||||
|
timeout = 0;
|
||||||
|
systemd-boot.enable = true;
|
||||||
|
systemd-boot.memtest86.enable = true;
|
||||||
|
systemd-boot.editor = false;
|
||||||
|
efi.canTouchEfiVariables = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
@ -5,14 +5,16 @@
|
|||||||
}: let
|
}: let
|
||||||
cfg = config.myConfig;
|
cfg = config.myConfig;
|
||||||
in {
|
in {
|
||||||
|
imports = [./bootloader.nix ./greetd.nix ./rebuild.nix ./sops.nix ./sway.nix ./wifi.nix ./music.nix];
|
||||||
|
|
||||||
options.myConfig = {
|
options.myConfig = {
|
||||||
enable = lib.mkEnableOption "my custom config";
|
enable = lib.mkEnableOption "my custom config";
|
||||||
desktop = lib.mkEnableOption "custom config with desktop support";
|
desktop = lib.mkEnableOption "custom config with desktop support";
|
||||||
laptop = lib.mkEnableOption "extra stuff for laptops like wifi";
|
laptop = lib.mkEnableOption "extra stuff for laptops like wifi";
|
||||||
};
|
};
|
||||||
imports = [./greetd.nix ./rebuild.nix ./sops.nix ./sway.nix ./wifi.nix ./music.nix];
|
|
||||||
|
|
||||||
config.myConfig = lib.mkIf cfg.enable {
|
config.myConfig = lib.mkIf cfg.enable {
|
||||||
|
bootloader.enable = true;
|
||||||
rebuild.enable = true;
|
rebuild.enable = true;
|
||||||
|
|
||||||
greetd.enable = lib.mkIf cfg.desktop true;
|
greetd.enable = lib.mkIf cfg.desktop true;
|
||||||
|
Loading…
Reference in New Issue
Block a user