aboutsummaryrefslogtreecommitdiff
path: root/flakes/private
diff options
context:
space:
mode:
Diffstat (limited to 'flakes/private')
-rw-r--r--flakes/private/openarc/flake.lock14
-rw-r--r--flakes/private/openarc/flake.nix6
-rw-r--r--flakes/private/opendmarc/flake.lock39
-rw-r--r--flakes/private/opendmarc/flake.nix9
4 files changed, 31 insertions, 37 deletions
diff --git a/flakes/private/openarc/flake.lock b/flakes/private/openarc/flake.lock
index b1ec2b5..854f73f 100644
--- a/flakes/private/openarc/flake.lock
+++ b/flakes/private/openarc/flake.lock
@@ -32,13 +32,13 @@
32 "url": "https://git.immae.eu/perso/Immae/Config/Nix.git" 32 "url": "https://git.immae.eu/perso/Immae/Config/Nix.git"
33 } 33 }
34 }, 34 },
35 "nixpkgs": { 35 "nix-lib": {
36 "locked": { 36 "locked": {
37 "lastModified": 1611218116, 37 "lastModified": 1629671097,
38 "narHash": "sha256-CcyGZ8cLlHgiViWyBjRIjdsdRZxJjP2MgtWeuqSv3CE=", 38 "narHash": "sha256-OKwGVcFaW0M4Su5NlwmUjubbsRCwbmPP1rNPtHd82As=",
39 "owner": "NixOS", 39 "owner": "NixOS",
40 "repo": "nixpkgs", 40 "repo": "nixpkgs",
41 "rev": "30ab92ea31f6b7e9095b1e7e4b56a5000823efdf", 41 "rev": "82d05e980543e1703cbfd3b5ccd1fdcd4b0f1f00",
42 "type": "github" 42 "type": "github"
43 }, 43 },
44 "original": { 44 "original": {
@@ -47,7 +47,7 @@
47 "type": "github" 47 "type": "github"
48 } 48 }
49 }, 49 },
50 "nixpkgs_2": { 50 "nixpkgs": {
51 "locked": { 51 "locked": {
52 "lastModified": 1597943282, 52 "lastModified": 1597943282,
53 "narHash": "sha256-G/VQBlqO7YeFOSvn29RqdvABZxmQBtiRYVA6kjqWZ6o=", 53 "narHash": "sha256-G/VQBlqO7YeFOSvn29RqdvABZxmQBtiRYVA6kjqWZ6o=",
@@ -66,7 +66,7 @@
66 "inputs": { 66 "inputs": {
67 "flake-utils": "flake-utils", 67 "flake-utils": "flake-utils",
68 "myuids": "myuids", 68 "myuids": "myuids",
69 "nixpkgs": "nixpkgs_2", 69 "nixpkgs": "nixpkgs",
70 "openarc": "openarc_2" 70 "openarc": "openarc_2"
71 }, 71 },
72 "locked": { 72 "locked": {
@@ -97,7 +97,7 @@
97 }, 97 },
98 "root": { 98 "root": {
99 "inputs": { 99 "inputs": {
100 "nixpkgs": "nixpkgs", 100 "nix-lib": "nix-lib",
101 "openarc": "openarc" 101 "openarc": "openarc"
102 } 102 }
103 } 103 }
diff --git a/flakes/private/openarc/flake.nix b/flakes/private/openarc/flake.nix
index 65a56ca..fd8ec56 100644
--- a/flakes/private/openarc/flake.nix
+++ b/flakes/private/openarc/flake.nix
@@ -3,10 +3,10 @@
3 path = "../../openarc"; 3 path = "../../openarc";
4 type = "path"; 4 type = "path";
5 }; 5 };
6 inputs.nixpkgs.url = "github:NixOS/nixpkgs"; 6 inputs.nix-lib.url = "github:NixOS/nixpkgs";
7 7
8 description = "Private configuration for openarc"; 8 description = "Private configuration for openarc";
9 outputs = { self, nixpkgs, openarc }: 9 outputs = { self, nix-lib, openarc }:
10 let 10 let
11 cfg = name': { config, lib, pkgs, name, ... }: lib.mkIf (name == name') { 11 cfg = name': { config, lib, pkgs, name, ... }: lib.mkIf (name == name') {
12 services.openarc = { 12 services.openarc = {
@@ -41,5 +41,5 @@
41 }; 41 };
42 in 42 in
43 openarc.outputs // 43 openarc.outputs //
44 { nixosModules = openarc.nixosModules or {} // nixpkgs.lib.genAttrs ["eldiron" "backup-2"] cfg; }; 44 { nixosModules = openarc.nixosModules or {} // nix-lib.lib.genAttrs ["eldiron" "backup-2"] cfg; };
45} 45}
diff --git a/flakes/private/opendmarc/flake.lock b/flakes/private/opendmarc/flake.lock
index ae07161..cdb3833 100644
--- a/flakes/private/opendmarc/flake.lock
+++ b/flakes/private/opendmarc/flake.lock
@@ -33,7 +33,9 @@
33 "libspf2": { 33 "libspf2": {
34 "inputs": { 34 "inputs": {
35 "flake-utils": "flake-utils_2", 35 "flake-utils": "flake-utils_2",
36 "nixpkgs": "nixpkgs_2" 36 "nixpkgs": [
37 "nixpkgs"
38 ]
37 }, 39 },
38 "locked": { 40 "locked": {
39 "dir": "flakes/libspf2", 41 "dir": "flakes/libspf2",
@@ -68,28 +70,13 @@
68 "url": "https://git.immae.eu/perso/Immae/Config/Nix.git" 70 "url": "https://git.immae.eu/perso/Immae/Config/Nix.git"
69 } 71 }
70 }, 72 },
71 "nixpkgs": { 73 "nix-lib": {
72 "locked": {
73 "lastModified": 1611218116,
74 "narHash": "sha256-CcyGZ8cLlHgiViWyBjRIjdsdRZxJjP2MgtWeuqSv3CE=",
75 "owner": "NixOS",
76 "repo": "nixpkgs",
77 "rev": "30ab92ea31f6b7e9095b1e7e4b56a5000823efdf",
78 "type": "github"
79 },
80 "original": {
81 "owner": "NixOS",
82 "repo": "nixpkgs",
83 "type": "github"
84 }
85 },
86 "nixpkgs_2": {
87 "locked": { 74 "locked": {
88 "lastModified": 1597943282, 75 "lastModified": 1629674054,
89 "narHash": "sha256-G/VQBlqO7YeFOSvn29RqdvABZxmQBtiRYVA6kjqWZ6o=", 76 "narHash": "sha256-Vl4SmTN1Cwz9T8Te85Bkq11e9VPl4JRNO+Rzmxxop+c=",
90 "owner": "NixOS", 77 "owner": "NixOS",
91 "repo": "nixpkgs", 78 "repo": "nixpkgs",
92 "rev": "c59ea8b8a0e7f927e7291c14ea6cd1bd3a16ff38", 79 "rev": "f118101266328f38241e266d30316cd3c50e43da",
93 "type": "github" 80 "type": "github"
94 }, 81 },
95 "original": { 82 "original": {
@@ -98,7 +85,7 @@
98 "type": "github" 85 "type": "github"
99 } 86 }
100 }, 87 },
101 "nixpkgs_3": { 88 "nixpkgs": {
102 "locked": { 89 "locked": {
103 "lastModified": 1597943282, 90 "lastModified": 1597943282,
104 "narHash": "sha256-G/VQBlqO7YeFOSvn29RqdvABZxmQBtiRYVA6kjqWZ6o=", 91 "narHash": "sha256-G/VQBlqO7YeFOSvn29RqdvABZxmQBtiRYVA6kjqWZ6o=",
@@ -118,10 +105,10 @@
118 "flake-utils": "flake-utils", 105 "flake-utils": "flake-utils",
119 "libspf2": "libspf2", 106 "libspf2": "libspf2",
120 "myuids": "myuids", 107 "myuids": "myuids",
121 "nixpkgs": "nixpkgs_3" 108 "nixpkgs": "nixpkgs"
122 }, 109 },
123 "locked": { 110 "locked": {
124 "narHash": "sha256-V6elpT2t2bYOnY6RSwLIu+SU7Zajkk7oonjscoYpWKo=", 111 "narHash": "sha256-Fw06I3FREReXjXFSs8TuTVQv2kncP3toGdJE1KeHJO8=",
125 "path": "../../opendmarc", 112 "path": "../../opendmarc",
126 "type": "path" 113 "type": "path"
127 }, 114 },
@@ -132,7 +119,11 @@
132 }, 119 },
133 "root": { 120 "root": {
134 "inputs": { 121 "inputs": {
135 "nixpkgs": "nixpkgs", 122 "nix-lib": "nix-lib",
123 "nixpkgs": [
124 "opendmarc",
125 "nixpkgs"
126 ],
136 "opendmarc": "opendmarc" 127 "opendmarc": "opendmarc"
137 } 128 }
138 } 129 }
diff --git a/flakes/private/opendmarc/flake.nix b/flakes/private/opendmarc/flake.nix
index 384bf98..3d500a2 100644
--- a/flakes/private/opendmarc/flake.nix
+++ b/flakes/private/opendmarc/flake.nix
@@ -3,10 +3,13 @@
3 path = "../../opendmarc"; 3 path = "../../opendmarc";
4 type = "path"; 4 type = "path";
5 }; 5 };
6 inputs.nixpkgs.url = "github:NixOS/nixpkgs"; 6 inputs.nix-lib.url = "github:NixOS/nixpkgs";
7
8 # Necessary for dependencies
9 inputs.nixpkgs.follows = "opendmarc/nixpkgs";
7 10
8 description = "Private configuration for opendmarc"; 11 description = "Private configuration for opendmarc";
9 outputs = { self, nixpkgs, opendmarc }: 12 outputs = { self, nix-lib, opendmarc, nixpkgs }:
10 let 13 let
11 cfg = name': { config, lib, pkgs, name, ... }: lib.mkIf (name == name') { 14 cfg = name': { config, lib, pkgs, name, ... }: lib.mkIf (name == name') {
12 users.users."${config.services.opendmarc.user}".extraGroups = [ "keys" ]; 15 users.users."${config.services.opendmarc.user}".extraGroups = [ "keys" ];
@@ -54,6 +57,6 @@
54 }; 57 };
55 in 58 in
56 opendmarc.outputs // 59 opendmarc.outputs //
57 { nixosModules = opendmarc.nixosModules or {} // nixpkgs.lib.genAttrs ["eldiron" "backup-2"] cfg; }; 60 { nixosModules = opendmarc.nixosModules or {} // nix-lib.lib.genAttrs ["eldiron" "backup-2"] cfg; };
58} 61}
59 62