mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-03-22 17:49:07 +01:00
Rename modules directory system to nixos
This commit is contained in:
parent
653a6f310b
commit
1c1b9221fc
48 changed files with 1 additions and 1 deletions
11
modules/nixos/boot/loader/grub.nix
Normal file
11
modules/nixos/boot/loader/grub.nix
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
{ config, lib, ... }:
|
||||
{
|
||||
options.custom.boot.loader.grub.enable = lib.mkEnableOption "";
|
||||
|
||||
config = lib.mkIf config.custom.boot.loader.grub.enable {
|
||||
boot = {
|
||||
tmp.cleanOnBoot = true;
|
||||
loader.grub.enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
18
modules/nixos/boot/loader/systemd-boot.nix
Normal file
18
modules/nixos/boot/loader/systemd-boot.nix
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
{ config, lib, ... }:
|
||||
{
|
||||
options.custom.boot.loader.systemd-boot.enable = lib.mkEnableOption "";
|
||||
|
||||
config = lib.mkIf config.custom.boot.loader.systemd-boot.enable {
|
||||
boot = {
|
||||
tmp.cleanOnBoot = true;
|
||||
loader = {
|
||||
systemd-boot = {
|
||||
enable = true;
|
||||
editor = false;
|
||||
configurationLimit = 20;
|
||||
};
|
||||
efi.canTouchEfiVariables = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
22
modules/nixos/boot/silent.nix
Normal file
22
modules/nixos/boot/silent.nix
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
{ config, lib, ... }:
|
||||
{
|
||||
options.custom.boot.silent = lib.mkEnableOption "";
|
||||
|
||||
config = lib.mkIf config.custom.boot.silent {
|
||||
boot = {
|
||||
loader.timeout = 0;
|
||||
kernelParams = [
|
||||
"quiet"
|
||||
"rd.systemd.show_status=false"
|
||||
"rd.udev.log_level=3"
|
||||
"udev.log_priority=3"
|
||||
];
|
||||
initrd = {
|
||||
verbose = false;
|
||||
systemd.enable = true;
|
||||
};
|
||||
consoleLogLevel = 3;
|
||||
plymouth.enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue