mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 21:01:34 +01:00
Make boot silent
This commit is contained in:
parent
a0ed1315a7
commit
255f845ee6
3 changed files with 36 additions and 15 deletions
|
|
@ -9,7 +9,10 @@
|
||||||
environment.sessionVariables.FLAKE = "/home/seb/Projects/nixos/my-config";
|
environment.sessionVariables.FLAKE = "/home/seb/Projects/nixos/my-config";
|
||||||
|
|
||||||
myConfig = {
|
myConfig = {
|
||||||
boot-loader.systemd-boot.enable = true;
|
boot-loader = {
|
||||||
|
systemd-boot.enable = true;
|
||||||
|
silent = true;
|
||||||
|
};
|
||||||
|
|
||||||
dm.sddm.enable = true;
|
dm.sddm.enable = true;
|
||||||
de.qtile.enable = true;
|
de.qtile.enable = true;
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,10 @@
|
||||||
environment.sessionVariables.FLAKE = "/home/seb/Projects/nixos/my-config";
|
environment.sessionVariables.FLAKE = "/home/seb/Projects/nixos/my-config";
|
||||||
|
|
||||||
myConfig = {
|
myConfig = {
|
||||||
boot-loader.systemd-boot.enable = true;
|
boot-loader = {
|
||||||
|
systemd-boot.enable = true;
|
||||||
|
silent = true;
|
||||||
|
};
|
||||||
|
|
||||||
dm.lightdm.enable = true;
|
dm.lightdm.enable = true;
|
||||||
de.qtile.enable = true;
|
de.qtile.enable = true;
|
||||||
|
|
|
||||||
|
|
@ -3,18 +3,33 @@
|
||||||
lib,
|
lib,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
options.myConfig.boot-loader.systemd-boot.enable = lib.mkEnableOption "";
|
options.myConfig.boot-loader = {
|
||||||
|
systemd-boot.enable = lib.mkEnableOption "";
|
||||||
config = lib.mkIf config.myConfig.boot-loader.systemd-boot.enable {
|
silent = lib.mkEnableOption "";
|
||||||
boot.tmp.cleanOnBoot = true;
|
|
||||||
boot.loader = {
|
|
||||||
systemd-boot = {
|
|
||||||
enable = true;
|
|
||||||
editor = false;
|
|
||||||
configurationLimit = 50;
|
|
||||||
};
|
|
||||||
efi.canTouchEfiVariables = true;
|
|
||||||
timeout = 3;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
config = lib.mkMerge [
|
||||||
|
(lib.mkIf config.myConfig.boot-loader.systemd-boot.enable {
|
||||||
|
boot.tmp.cleanOnBoot = true;
|
||||||
|
boot.loader = {
|
||||||
|
systemd-boot = {
|
||||||
|
enable = true;
|
||||||
|
editor = false;
|
||||||
|
configurationLimit = 20;
|
||||||
|
};
|
||||||
|
efi.canTouchEfiVariables = true;
|
||||||
|
timeout = 3;
|
||||||
|
};
|
||||||
|
systemd.watchdog.rebootTime = "10";
|
||||||
|
})
|
||||||
|
|
||||||
|
(lib.mkIf config.myConfig.boot-loader.silent {
|
||||||
|
boot = {
|
||||||
|
kernelParams = ["quiet" "rd.systemd.show_status=false" "rd.udev.log_level=3" "udev.log_priority=3"];
|
||||||
|
consoleLogLevel = 3;
|
||||||
|
initrd.verbose = false;
|
||||||
|
initrd.systemd.enable = true;
|
||||||
|
};
|
||||||
|
})
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue