feat: make nixosConfig work on home-manager

This commit is contained in:
Leon Schwarzäugl 2025-07-17 03:33:27 +02:00
parent 302c488569
commit b73978ad19
Signed by: swarsel
GPG key ID: 26A54C31F2A4FD84
10 changed files with 30 additions and 30 deletions

View file

@ -1,4 +1,4 @@
{ lib, config, globals, nixosConfig, ... }:
{ lib, config, globals, nixosConfig ? config, ... }:
let
inherit (nixosConfig.repo.secrets.common.mail) address1 address2 address3 address4 allMailAddresses;
inherit (nixosConfig.repo.secrets.common) fullName;

View file

@ -1,4 +1,4 @@
{ lib, config, nixosConfig, ... }:
{ lib, config, nixosConfig ? config, ... }:
let
inherit (nixosConfig.repo.secrets.common.location) latitude longitude;
in

View file

@ -1,4 +1,4 @@
{ lib, config, globals, minimal, nixosConfig, ... }:
{ lib, config, globals, minimal, nixosConfig ? config, ... }:
let
inherit (nixosConfig.repo.secrets.common.mail) address1;
inherit (nixosConfig.repo.secrets.common) fullName;

View file

@ -1,4 +1,4 @@
{ lib, config, nixosConfig, ... }:
{ lib, config, nixosConfig ? config, ... }:
let
inherit (nixosConfig.repo.secrets.common.mail) address1 address2 address2-name address3 address3-name address4 address4-user address4-host;
inherit (nixosConfig.repo.secrets.common) fullName;

View file

@ -1,4 +1,4 @@
{ lib, config, nixosConfig, ... }:
{ lib, config, nixosConfig ? null, ... }:
let
# mirrorAttrs = lib.mapAttrs (_: v: lib.mkDefault v) nixosConfig.swarselsystems;
inherit (lib) mkDefault mapAttrs filterAttrs;
@ -8,5 +8,5 @@ let
in
{
# config.swarselsystems = mirrorAttrs;
config.swarselsystems = mkDefaultCommonAttrs config.swarselsystems nixosConfig.swarselsystems;
config.swarselsystems = lib.mkIf (nixosConfig != null) (mkDefaultCommonAttrs config.swarselsystems nixosConfig.swarselsystems);
}

View file

@ -1,4 +1,4 @@
{ lib, config, nixosConfig, ... }:
{ lib, config, nixosConfig ? config, ... }:
let
inherit (config.swarselsystems) homeDir;
in

View file

@ -1,4 +1,4 @@
{ self, config, pkgs, lib, nixosConfig, ... }:
{ self, config, pkgs, lib, nixosConfig ? config, ... }:
let
inherit (config.swarselsystems) homeDir;
in

View file

@ -19,8 +19,6 @@
minimal = lib.mkIf minimal true;
};
}
# "${self}/modules/nixos/common/pii.nix"
# "${self}/modules/nixos/common/meta.nix"
];
# node = {
# secretsDir = if (!config.swarselsystems.isNixos) then ../../../hosts/home/${configName}/secrets else ../../../hosts/nixos/${configName}/secrets;