refactor(flake-parts): initial flake-parts configuration
This commit is contained in:
parent
8f67be9e68
commit
5603001d65
230 changed files with 380 additions and 717 deletions
16
inputs/system/modules/base/bootloader/default.nix
Normal file
16
inputs/system/modules/base/bootloader/default.nix
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
{ lib, ... }:
|
||||
|
||||
{
|
||||
imports = [ ./systemd ./plymouth ];
|
||||
|
||||
options.systemModules = {
|
||||
bootloader = {
|
||||
systemd = {
|
||||
enable = lib.mkEnableOption "Enable systemd bootloader module";
|
||||
};
|
||||
};
|
||||
plymouth = {
|
||||
enable = lib.mkEnableOption "Enable plymouth bootscreen";
|
||||
};
|
||||
};
|
||||
}
|
||||
1
inputs/system/modules/base/bootloader/grub/default.nix
Normal file
1
inputs/system/modules/base/bootloader/grub/default.nix
Normal file
|
|
@ -0,0 +1 @@
|
|||
## to be implemented
|
||||
15
inputs/system/modules/base/bootloader/plymouth/default.nix
Normal file
15
inputs/system/modules/base/bootloader/plymouth/default.nix
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
{ lib, config, pkgs, ... }:
|
||||
|
||||
let
|
||||
cfg = config.systemModules.plymouth;
|
||||
in
|
||||
|
||||
{
|
||||
config = lib.mkIf cfg.enable {
|
||||
boot.plymouth = {
|
||||
enable = true;
|
||||
themePackages = [(pkgs.catppuccin-plymouth.override {variant = "mocha";})];
|
||||
theme = "catppuccin-mocha";
|
||||
};
|
||||
};
|
||||
}
|
||||
18
inputs/system/modules/base/bootloader/systemd/default.nix
Normal file
18
inputs/system/modules/base/bootloader/systemd/default.nix
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
{ lib, config, ... }:
|
||||
|
||||
let
|
||||
inherit (lib) mkIf;
|
||||
host = config.systemModules.host;
|
||||
in
|
||||
|
||||
{
|
||||
config = mkIf (host.type != "phone") {
|
||||
boot.loader = {
|
||||
systemd-boot = {
|
||||
enable = true;
|
||||
consoleMode = "max";
|
||||
};
|
||||
efi.canTouchEfiVariables = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue