refactor(flake-parts): initial flake-parts configuration

This commit is contained in:
ooks-io 2024-05-13 22:50:56 +12:00
parent 8f67be9e68
commit 5603001d65
230 changed files with 380 additions and 717 deletions

View 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";
};
};
}

View file

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

View 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";
};
};
}

View 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;
};
};
}