aboutsummaryrefslogtreecommitdiff
path: root/flakes/opendmarc
diff options
context:
space:
mode:
Diffstat (limited to 'flakes/opendmarc')
-rw-r--r--flakes/opendmarc/flake.lock32
-rw-r--r--flakes/opendmarc/flake.nix3
2 files changed, 24 insertions, 11 deletions
diff --git a/flakes/opendmarc/flake.lock b/flakes/opendmarc/flake.lock
index 0bd645c..92551af 100644
--- a/flakes/opendmarc/flake.lock
+++ b/flakes/opendmarc/flake.lock
@@ -38,24 +38,36 @@
38 ] 38 ]
39 }, 39 },
40 "locked": { 40 "locked": {
41 "narHash": "sha256-q6JJxHV1hyMQlqsqFFTFeUyiH6HsVZJ3GYxXODybPfM=", 41 "dir": "flakes/libspf2",
42 "path": "../libspf2", 42 "lastModified": 1629758991,
43 "type": "path" 43 "narHash": "sha256-J0mMj/lPMR+QaqvAzUpOUWELYoyKCpI20T4YZHerAEs=",
44 "ref": "master",
45 "rev": "5e2ec9fb8628136e7f9f618c68c0e42ab086b80e",
46 "revCount": 866,
47 "type": "git",
48 "url": "https://git.immae.eu/perso/Immae/Config/Nix.git"
44 }, 49 },
45 "original": { 50 "original": {
46 "path": "../libspf2", 51 "dir": "flakes/libspf2",
47 "type": "path" 52 "type": "git",
53 "url": "https://git.immae.eu/perso/Immae/Config/Nix.git"
48 } 54 }
49 }, 55 },
50 "myuids": { 56 "myuids": {
51 "locked": { 57 "locked": {
52 "narHash": "sha256-GUYJUFgSpffirdUSwZ1r/NyAQkBkVxgH6fEaOvtyGiI=", 58 "dir": "flakes/myuids",
53 "path": "../myuids", 59 "lastModified": 1628207001,
54 "type": "path" 60 "narHash": "sha256-7e12OfDv9zMOfqcAlsk1sZj2l3ZB03kcBdWUqhwVaWo=",
61 "ref": "master",
62 "rev": "dfe02d8fd52e33c7d4e1a209cf486696100b88f3",
63 "revCount": 865,
64 "type": "git",
65 "url": "https://git.immae.eu/perso/Immae/Config/Nix.git"
55 }, 66 },
56 "original": { 67 "original": {
57 "path": "../myuids", 68 "dir": "flakes/myuids",
58 "type": "path" 69 "type": "git",
70 "url": "https://git.immae.eu/perso/Immae/Config/Nix.git"
59 } 71 }
60 }, 72 },
61 "nixpkgs": { 73 "nixpkgs": {
diff --git a/flakes/opendmarc/flake.nix b/flakes/opendmarc/flake.nix
index bf7bd5b..469cf74 100644
--- a/flakes/opendmarc/flake.nix
+++ b/flakes/opendmarc/flake.nix
@@ -93,6 +93,7 @@
93 }; 93 };
94 94
95 config = lib.mkIf cfg.enable { 95 config = lib.mkIf cfg.enable {
96 nixpkgs.overlays = [ self.overlay ];
96 users.users = lib.optionalAttrs (cfg.user == "opendmarc") { 97 users.users = lib.optionalAttrs (cfg.user == "opendmarc") {
97 opendmarc = { 98 opendmarc = {
98 group = cfg.group; 99 group = cfg.group;
@@ -104,7 +105,7 @@
104 opendmarc.gid = myuids.lib.gids.opendmarc; 105 opendmarc.gid = myuids.lib.gids.opendmarc;
105 }; 106 };
106 107
107 environment.systemPackages = [ self.defaultPackage."${pkgs.system}" ]; 108 environment.systemPackages = [ pkgs.opendmarc ];
108 109
109 systemd.services.opendmarc = { 110 systemd.services.opendmarc = {
110 description = "OpenDMARC daemon"; 111 description = "OpenDMARC daemon";