My Nix Configuration
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

[flake] more metadata stuff

dish 12cac7e6 a548667d

+46 -5
+3
data/default.nix
··· 1 1 { 2 + imports = [ 3 + ./oidc.nix 4 + ]; 2 5 flake.data = { 3 6 hosts = fromTOML (builtins.readFile ./hosts.toml); 4 7 services = fromTOML (builtins.readFile ./services.toml);
+13
data/oidc.nix
··· 1 + { 2 + self, 3 + lib, 4 + ... 5 + }: 6 + let 7 + clientList = lib.concatLists ( 8 + lib.mapAttrsToList (c: _: (c.config.dish.oidcClients or [ ])) self.nixosConfigurations 9 + ); 10 + in 11 + { 12 + flake.data.oidcClients = clientList; 13 + }
+2 -5
flake.nix
··· 130 130 ./hosts 131 131 ./neovim 132 132 ./data 133 + # Called fmodule instead of flake-module to clean up autosuggestions 134 + (import ./fmodule.nix) 133 135 ]; 134 - 135 - # # Flake attributes 136 - # flake = { 137 - # 138 - # }; 139 136 140 137 # Per-system stuff 141 138 perSystem =
+10
fmodule.nix
··· 1 + { 2 + lib, 3 + ... 4 + }: 5 + { 6 + options.flake.data = lib.mkOption { 7 + type = lib.types.anything; 8 + description = "Data for dishNet flakes"; 9 + }; 10 + }
+1
lib/default.nix
··· 7 7 flake = { 8 8 lib = { 9 9 caddy = import ./caddy.nix { inherit data lib; }; 10 + secrets = import ./secrets.nix; 10 11 inherit data; 11 12 inherit strings; 12 13 inherit (strings) toPascalCase toUpperSnakeCase;
+17
lib/secrets.nix
··· 1 + { 2 + mkServiceSecrets = 3 + service: isDir: secretsPath: secrets: 4 + let 5 + sep = if isDir then "/" else "-"; 6 + in 7 + builtins.listToAttrs ( 8 + map (sec: { 9 + name = service + "-" + sec; 10 + value = { 11 + owner = service; 12 + group = service; 13 + file = secretsPath + /${service}${sep}${sec}.age; 14 + }; 15 + }) secrets 16 + ); 17 + }