refactor: flake dir -> outputs/sys -> nixos

This commit is contained in:
ooks-io 2024-06-08 23:06:08 +12:00
parent 3615bb010f
commit a6d5e892a1
73 changed files with 9 additions and 2 deletions

View file

@ -0,0 +1,17 @@
{ lib, ... }:
let
inherit (lib) types mkOption;
in
{
imports = [
./systemd.nix
# ./grub
];
options.ooknet.boot.loader = mkOption {
type = types.enum ["systemd" "grub"];
default = "systemd";
};
}

View file

@ -0,0 +1 @@
## to be implemented

View file

@ -0,0 +1,18 @@
{ lib, config, ... }:
let
inherit (lib) mkIf;
bootloader = config.ooknet.boot.loader;
in
{
config = mkIf (bootloader == "systemd") {
boot.loader = {
systemd-boot = {
enable = true;
consoleMode = "max";
};
efi.canTouchEfiVariables = true;
};
};
}