mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-03-22 20:09: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;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue