refactor: dendritic principles

This commit is contained in:
2026-05-06 19:45:03 +02:00
parent d6878abc61
commit e33602e879
8 changed files with 23 additions and 7 deletions
+3
View File
@@ -1,11 +1,14 @@
{ config, ... }:
let
account = config.repo.account;
nixosModules = config.flake.modules.nixos;
in
{
flake.modules.nixos.sops-password =
{ config, ... }:
{
imports = [ nixosModules.sops ];
sops.secrets.hashed-password.neededForUsers = true;
users.users.${account.name}.hashedPasswordFile = config.sops.secrets.hashed-password.path;
+3
View File
@@ -5,6 +5,7 @@
}:
let
nixosModules = config.flake.modules.nixos;
hmModules = config.flake.modules.homeManager;
sopsAdminKeyPath = "/var/lib/sops/keys.txt";
in
{
@@ -22,6 +23,8 @@ in
{
imports = [ nixosModules.sops ];
home-manager.sharedModules = [ hmModules.sops ];
sops.age.keyFile = sopsAdminKeyPath;
systemd.tmpfiles.rules = [