mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-03-22 17:49:07 +01:00
Compare commits
3 commits
a2827a95f2
...
ef4ecd7fb5
| Author | SHA1 | Date | |
|---|---|---|---|
| ef4ecd7fb5 | |||
| 4ab442f61b | |||
| 3a669dd8fd |
3 changed files with 4 additions and 8 deletions
|
|
@ -27,7 +27,7 @@
|
|||
|> lib.attrValues
|
||||
|> lib.map (host: host.config.custom.sops)
|
||||
|> lib.filter (sops: sops.enable)
|
||||
|> lib.map (sops: mkCreationRule sops);
|
||||
|> lib.map mkCreationRule;
|
||||
|
||||
userCreationRules =
|
||||
self.nixosConfigurations
|
||||
|
|
@ -35,7 +35,7 @@
|
|||
|> lib.filter (host: host.config |> lib.hasAttr "home-manager")
|
||||
|> lib.map (host: host.config.home-manager.users.seb.custom.sops)
|
||||
|> lib.filter (sops: sops.enable)
|
||||
|> lib.map (sops: mkCreationRule sops);
|
||||
|> lib.map mkCreationRule;
|
||||
|
||||
jsonConfig = { creation_rules = hostCreationRules ++ userCreationRules; } |> lib.strings.toJSON;
|
||||
in
|
||||
|
|
|
|||
|
|
@ -5,10 +5,6 @@
|
|||
{
|
||||
isPrivateDomain = domain: domain |> lib.hasSuffix ".splitleaf.de";
|
||||
|
||||
subdomainOf = domain: domain |> lib.splitString "." |> lib.head;
|
||||
|
||||
rootDomainOf = domain: domain |> lib.splitString "." |> lib.tail |> lib.concatStringsSep ".";
|
||||
|
||||
listNixFilesRecursively =
|
||||
dir: dir |> lib.filesystem.listFilesRecursive |> lib.filter (lib.hasSuffix ".nix");
|
||||
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ in
|
|||
openssh = {
|
||||
enable = true;
|
||||
openFirewall = false;
|
||||
ports = [ ];
|
||||
ports = lib.mkForce [ ];
|
||||
listenAddresses = lib.singleton {
|
||||
addr = netCfg.overlay.address;
|
||||
port = 22;
|
||||
|
|
@ -46,7 +46,7 @@ in
|
|||
users.users.seb.openssh.authorizedKeys.keyFiles =
|
||||
self.nixosConfigurations
|
||||
|> lib.attrValues
|
||||
|> lib.filter (host: host.config.custom.networking.hostName != netCfg.hostName)
|
||||
|> lib.filter (host: host.config.networking.hostName != netCfg.hostName)
|
||||
|> lib.filter (host: host.config |> lib.hasAttr "home-manager")
|
||||
|> lib.map (host: host.config.home-manager.users.seb.custom.programs.ssh)
|
||||
|> lib.filter (ssh: ssh.enable)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue