This commit is contained in:
2025-12-31 15:03:16 +02:00
parent c93c93a810
commit fa32ae5510
69 changed files with 1093 additions and 659 deletions
+10 -10
View File
@@ -6,23 +6,25 @@
...
}: let
inherit (lib) mkDefault mkOption mkEnableOption mkIf;
cfg = config.module.config;
cfg = config.unexplrd.config;
cfgHost = config.unexplrd.host;
in {
imports = [
./boot
./hardware
./misc
./module/lanzaboote.nix
./module/locale.nix
./networking
./nix
./security
./locale.nix
./stylix
./programs.nix
./services.nix
./sops.nix
./users.nix
];
options = {
module.host = {
unexplrd.host = {
name = mkOption {
type = lib.types.str;
};
@@ -36,7 +38,7 @@ in {
type = lib.types.enum ["laptop" "server" "workstation"];
};
};
module.config = {
unexplrd.config = {
laptop.homeRowMods = mkEnableOption "set to have mods on asdfjkl;";
powerSave = mkEnableOption "set to use various power saving daemons";
secureBoot = mkEnableOption "set if secure boot is configured";
@@ -50,11 +52,9 @@ in {
};
config = lib.mkMerge [
{
system.stateVersion = config.module.host.stateVersion;
networking = {
hostName = config.module.host.name;
hostId = config.module.host.id;
};
system.stateVersion = cfgHost.stateVersion;
networking.hostName = cfgHost.name;
networking.hostId = cfgHost.id;
}
{
boot.initrd.systemd.tpm2.enable = mkDefault cfg.tpmDiskUnlock;