]> git.immae.eu Git - perso/Immae/Config/Nix.git/commitdiff
Refactor flakes
authorIsmaël Bouya <ismael.bouya@normalesup.org>
Mon, 23 Aug 2021 22:29:34 +0000 (00:29 +0200)
committerIsmaël Bouya <ismael.bouya@normalesup.org>
Mon, 23 Aug 2021 23:10:29 +0000 (01:10 +0200)
Second iteration

flakes/openarc/flake.nix
flakes/opendmarc/flake.lock
flakes/opendmarc/flake.nix
flakes/peertube/flake.nix
flakes/private/openarc/flake.lock
flakes/private/opendmarc/flake.lock
flakes/private/peertube/flake.lock

index f47afcf0ee4d30dc4587a2cf99414c58839a9b94..f4ce653e3de42d612a660c28f10b644e06481731 100644 (file)
           };
 
           config = lib.mkIf cfg.enable {
+            nixpkgs.overlays = [ self.overlay ];
             users.users = lib.optionalAttrs (cfg.user == "openarc") {
               openarc = {
                 group = cfg.group;
               openarc.gid = myuids.lib.gids.openarc;
             };
 
-            environment.systemPackages = [ self.defaultPackage."${pkgs.system}" ];
+            environment.systemPackages = [ pkgs.openarc ];
 
             systemd.services.openarc = {
               description = "OpenARC daemon";
index 0bd645c55bb2f1bd094b2d357f6850557050b20e..92551affc093b0e6d5488435797906954a9fb4dd 100644 (file)
         ]
       },
       "locked": {
-        "narHash": "sha256-q6JJxHV1hyMQlqsqFFTFeUyiH6HsVZJ3GYxXODybPfM=",
-        "path": "../libspf2",
-        "type": "path"
+        "dir": "flakes/libspf2",
+        "lastModified": 1629758991,
+        "narHash": "sha256-J0mMj/lPMR+QaqvAzUpOUWELYoyKCpI20T4YZHerAEs=",
+        "ref": "master",
+        "rev": "5e2ec9fb8628136e7f9f618c68c0e42ab086b80e",
+        "revCount": 866,
+        "type": "git",
+        "url": "https://git.immae.eu/perso/Immae/Config/Nix.git"
       },
       "original": {
-        "path": "../libspf2",
-        "type": "path"
+        "dir": "flakes/libspf2",
+        "type": "git",
+        "url": "https://git.immae.eu/perso/Immae/Config/Nix.git"
       }
     },
     "myuids": {
       "locked": {
-        "narHash": "sha256-GUYJUFgSpffirdUSwZ1r/NyAQkBkVxgH6fEaOvtyGiI=",
-        "path": "../myuids",
-        "type": "path"
+        "dir": "flakes/myuids",
+        "lastModified": 1628207001,
+        "narHash": "sha256-7e12OfDv9zMOfqcAlsk1sZj2l3ZB03kcBdWUqhwVaWo=",
+        "ref": "master",
+        "rev": "dfe02d8fd52e33c7d4e1a209cf486696100b88f3",
+        "revCount": 865,
+        "type": "git",
+        "url": "https://git.immae.eu/perso/Immae/Config/Nix.git"
       },
       "original": {
-        "path": "../myuids",
-        "type": "path"
+        "dir": "flakes/myuids",
+        "type": "git",
+        "url": "https://git.immae.eu/perso/Immae/Config/Nix.git"
       }
     },
     "nixpkgs": {
index bf7bd5bc714f1680e11763ebde4d280060d19bee..469cf74f24b3e09e3e187c465a73604718512812 100644 (file)
@@ -93,6 +93,7 @@
          };
 
          config = lib.mkIf cfg.enable {
+           nixpkgs.overlays = [ self.overlay ];
            users.users = lib.optionalAttrs (cfg.user == "opendmarc") {
              opendmarc = {
                group = cfg.group;
              opendmarc.gid = myuids.lib.gids.opendmarc;
            };
 
-           environment.systemPackages = [ self.defaultPackage."${pkgs.system}" ];
+           environment.systemPackages = [ pkgs.opendmarc ];
 
            systemd.services.opendmarc = {
              description = "OpenDMARC daemon";
index 9a5c55746353b1c32d3ef5eadfa806c8f62d8370..2f9c8c14f8783e36bdfe9002ebf1751f41fe6f81 100644 (file)
           };
           package = lib.mkOption {
             type = lib.types.package;
-            default = self.defaultPackage."${pkgs.system}";
+            default = pkgs.peertube;
             description = ''
               Peertube package to use.
             '';
         };
 
         config = lib.mkIf cfg.enable {
+          nixpkgs.overlays = [ self.overlay ];
           users.users = lib.optionalAttrs (cfg.user == name) {
             "${name}" = {
               uid = myuids.lib.uids.peertube;
index 854f73f8630b6042fb6339d8719a886dd9f90ac4..f15e441e02b01cc87b3e32c09b6838aa2387593d 100644 (file)
     "myuids": {
       "locked": {
         "dir": "flakes/myuids",
-        "lastModified": 1609281959,
-        "narHash": "sha256-SYNlHeobQAzTzK0pM5AqMn7M2WbTuzBeoD+Q3Mu+sho=",
+        "lastModified": 1628207001,
+        "narHash": "sha256-7e12OfDv9zMOfqcAlsk1sZj2l3ZB03kcBdWUqhwVaWo=",
         "ref": "master",
-        "rev": "1be9e64bb4556676f65e6e5044e04426848849c0",
-        "revCount": 791,
+        "rev": "dfe02d8fd52e33c7d4e1a209cf486696100b88f3",
+        "revCount": 865,
         "type": "git",
         "url": "https://git.immae.eu/perso/Immae/Config/Nix.git"
       },
     },
     "nix-lib": {
       "locked": {
-        "lastModified": 1629671097,
-        "narHash": "sha256-OKwGVcFaW0M4Su5NlwmUjubbsRCwbmPP1rNPtHd82As=",
+        "lastModified": 1629758329,
+        "narHash": "sha256-Qdno5vgP0pnc+nEB5DjYGseW+4MuXiJMfc6cHwalCXY=",
         "owner": "NixOS",
         "repo": "nixpkgs",
-        "rev": "82d05e980543e1703cbfd3b5ccd1fdcd4b0f1f00",
+        "rev": "99967a54d893b9742b38809ccfe3172b6918bdef",
         "type": "github"
       },
       "original": {
@@ -70,7 +70,7 @@
         "openarc": "openarc_2"
       },
       "locked": {
-        "narHash": "sha256-cTe5ak0julFu18fRiXVWZ469km8dPVTRidjl21W+SWc=",
+        "narHash": "sha256-w+MiC+2IBNsXJT9Ln5TBfipv0eCqZOdyY/BYGFVu+nk=",
         "path": "../../openarc",
         "type": "path"
       },
index cdb38335f39d4c3700eef3b9dd48376f9b242a40..24df937b2fb9bce9c8303c5ccfd057bf47278412 100644 (file)
       },
       "locked": {
         "dir": "flakes/libspf2",
-        "lastModified": 1609548509,
-        "narHash": "sha256-d9gssVdKV0EaeDU/L5QgQpQwFuxWMbwNQ71i7z4LdDs=",
+        "lastModified": 1629758991,
+        "narHash": "sha256-J0mMj/lPMR+QaqvAzUpOUWELYoyKCpI20T4YZHerAEs=",
         "ref": "master",
-        "rev": "749623765bef80615fc21e73aff89521d262e277",
-        "revCount": 796,
+        "rev": "5e2ec9fb8628136e7f9f618c68c0e42ab086b80e",
+        "revCount": 866,
         "type": "git",
         "url": "https://git.immae.eu/perso/Immae/Config/Nix.git"
       },
     "myuids": {
       "locked": {
         "dir": "flakes/myuids",
-        "lastModified": 1609548509,
-        "narHash": "sha256-d9gssVdKV0EaeDU/L5QgQpQwFuxWMbwNQ71i7z4LdDs=",
+        "lastModified": 1628207001,
+        "narHash": "sha256-7e12OfDv9zMOfqcAlsk1sZj2l3ZB03kcBdWUqhwVaWo=",
         "ref": "master",
-        "rev": "749623765bef80615fc21e73aff89521d262e277",
-        "revCount": 796,
+        "rev": "dfe02d8fd52e33c7d4e1a209cf486696100b88f3",
+        "revCount": 865,
         "type": "git",
         "url": "https://git.immae.eu/perso/Immae/Config/Nix.git"
       },
         "nixpkgs": "nixpkgs"
       },
       "locked": {
-        "narHash": "sha256-Fw06I3FREReXjXFSs8TuTVQv2kncP3toGdJE1KeHJO8=",
+        "narHash": "sha256-co+AfUh+3SMGGFTQy5u8470UHXbLiPeAlDWRCdoNdFc=",
         "path": "../../opendmarc",
         "type": "path"
       },
index 97c5c6378eaeafb2aa28a72aa5d48ca7c931685e..4944da76002e8f92e0dcb7d90ec576f10e71f578 100644 (file)
     "myuids": {
       "locked": {
         "dir": "flakes/myuids",
-        "lastModified": 1611091761,
-        "narHash": "sha256-fE3FBeUxVaMezKjEpepdQW9apOza+0AfBALFhaaD0VA=",
+        "lastModified": 1628207001,
+        "narHash": "sha256-7e12OfDv9zMOfqcAlsk1sZj2l3ZB03kcBdWUqhwVaWo=",
         "ref": "master",
-        "rev": "23f9fdf03a6673dbe334ae33be4f498cc4753191",
-        "revCount": 802,
+        "rev": "dfe02d8fd52e33c7d4e1a209cf486696100b88f3",
+        "revCount": 865,
         "type": "git",
         "url": "https://git.immae.eu/perso/Immae/Config/Nix.git"
       },
     "myuids_2": {
       "locked": {
         "dir": "flakes/myuids",
-        "lastModified": 1611091761,
-        "narHash": "sha256-fE3FBeUxVaMezKjEpepdQW9apOza+0AfBALFhaaD0VA=",
+        "lastModified": 1628207001,
+        "narHash": "sha256-7e12OfDv9zMOfqcAlsk1sZj2l3ZB03kcBdWUqhwVaWo=",
         "ref": "master",
-        "rev": "23f9fdf03a6673dbe334ae33be4f498cc4753191",
-        "revCount": 802,
+        "rev": "dfe02d8fd52e33c7d4e1a209cf486696100b88f3",
+        "revCount": 865,
         "type": "git",
         "url": "https://git.immae.eu/perso/Immae/Config/Nix.git"
       },
         "peertube": "peertube"
       },
       "locked": {
-        "narHash": "sha256-YvUqraTpt/I4jw0mSrJgptLymZwlBvhwSK9VLUKD/cc=",
+        "narHash": "sha256-ESrcCrx7QmNk8MHgws9KrPEZqIxKNQ6bcshbUPj9u88=",
         "path": "../../peertube",
         "type": "path"
       },
         "peertube": "peertube_2"
       },
       "locked": {
-        "narHash": "sha256-YvUqraTpt/I4jw0mSrJgptLymZwlBvhwSK9VLUKD/cc=",
+        "narHash": "sha256-ESrcCrx7QmNk8MHgws9KrPEZqIxKNQ6bcshbUPj9u88=",
         "path": "../../peertube",
         "type": "path"
       },