huge
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user