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