From b8eee7ef35e46d0d3701edb742f8b3d9e1be38a4 Mon Sep 17 00:00:00 2001 From: reo101 Date: Tue, 26 Dec 2023 01:14:25 +0200 Subject: [PATCH] feat(agenix): switch to `ragenix` --- flake.lock | 73 ++++--------------- flake.nix | 11 +-- .../x86_64-linux/jeeves/configuration.nix | 2 +- 3 files changed, 22 insertions(+), 64 deletions(-) diff --git a/flake.lock b/flake.lock index d3b242c..73acfdd 100644 --- a/flake.lock +++ b/flake.lock @@ -50,28 +50,6 @@ "type": "github" } }, - "agenix_2": { - "inputs": { - "darwin": "darwin", - "nixpkgs": [ - "ragenix", - "nixpkgs" - ] - }, - "locked": { - "lastModified": 1682101079, - "narHash": "sha256-MdAhtjrLKnk2uiqun1FWABbKpLH090oeqCSiWemtuck=", - "owner": "ryantm", - "repo": "agenix", - "rev": "2994d002dcff5353ca1ac48ec584c7f6589fe447", - "type": "github" - }, - "original": { - "owner": "ryantm", - "repo": "agenix", - "type": "github" - } - }, "alejandra": { "inputs": { "flakeCompat": "flakeCompat", @@ -155,29 +133,6 @@ "type": "github" } }, - "darwin": { - "inputs": { - "nixpkgs": [ - "ragenix", - "agenix", - "nixpkgs" - ] - }, - "locked": { - "lastModified": 1673295039, - "narHash": "sha256-AsdYgE8/GPwcelGgrntlijMg4t3hLFJFCRF3tL5WVjA=", - "owner": "lnl7", - "repo": "nix-darwin", - "rev": "87b9d090ad39b25b2400029c64825fc2a8868943", - "type": "github" - }, - "original": { - "owner": "lnl7", - "ref": "master", - "repo": "nix-darwin", - "type": "github" - } - }, "deploy-rs": { "inputs": { "flake-compat": "flake-compat_2", @@ -229,11 +184,11 @@ ] }, "locked": { - "lastModified": 1703467306, - "narHash": "sha256-JaN973jBM1AYwjpunoomJ0/YlX5aJJ8gq6UKf9231K8=", + "lastModified": 1703532766, + "narHash": "sha256-ojjW3cuNmqL5uqDWohwLoO8dYpheM5+AfgsNmGIMwG8=", "owner": "nix-community", "repo": "disko", - "rev": "7d6561fee4f4c9a7014d0e132f025872a85cf2af", + "rev": "1b191113874dee97796749bb21eac3d84735c70a", "type": "github" }, "original": { @@ -580,11 +535,11 @@ }, "hardware": { "locked": { - "lastModified": 1702453208, - "narHash": "sha256-0wRi9SposfE2wHqjuKt8WO2izKB/ASDOV91URunIqgo=", + "lastModified": 1703545041, + "narHash": "sha256-nvQA+k1rSszrf4kA4eK2i/SGbzoXyoKHzzyzq/Jca1w=", "owner": "nixos", "repo": "nixos-hardware", - "rev": "7763c6fd1f299cb9361ff2abf755ed9619ef01d6", + "rev": "a15b6e525f5737a47b4ce28445c836996fb2ea8c", "type": "github" }, "original": { @@ -622,11 +577,11 @@ ] }, "locked": { - "lastModified": 1703499046, - "narHash": "sha256-A6wclPJCOMEYuD28KBOBTwHEVOKy3f9yvuMFAJ55dco=", + "lastModified": 1703527373, + "narHash": "sha256-AjypRssRtS6F3xkf7rE3/bXkIF2WJOZLbTIspjcE1zM=", "owner": "nix-community", "repo": "home-manager", - "rev": "d5a917bab40daf4e5f82cd27162b8a6656d3beab", + "rev": "80679ea5074ab7190c4cce478c600057cfb5edae", "type": "github" }, "original": { @@ -1016,11 +971,11 @@ }, "nur": { "locked": { - "lastModified": 1703523406, - "narHash": "sha256-dQitzeOVDI3k+v5s714f5U2P+ihS8GSbJaasvVqMO8k=", + "lastModified": 1703544839, + "narHash": "sha256-UBv96D7Rn9PuMZqQ1HBeaUKo9SCEpa5sjGB3CIJGzCY=", "owner": "nix-community", "repo": "NUR", - "rev": "cb29cfb57eb08e52760b40424a9e34865f328e1f", + "rev": "4c682e6595400dd3cec580b326823cc0ddc48c38", "type": "github" }, "original": { @@ -1059,7 +1014,9 @@ }, "ragenix": { "inputs": { - "agenix": "agenix_2", + "agenix": [ + "agenix" + ], "crane": "crane", "flake-utils": "flake-utils_4", "nixpkgs": "nixpkgs_4", diff --git a/flake.nix b/flake.nix index 85b5d19..920e9d8 100644 --- a/flake.nix +++ b/flake.nix @@ -59,15 +59,16 @@ }; }; + ragenix = { + url = "github:yaxitech/ragenix"; + inputs.agenix.follows = "agenix"; + }; + agenix-rekey = { url = "github:oddlama/agenix-rekey"; inputs.nixpkgs.follows = "nixpkgs"; }; - ragenix = { - url = "github:yaxitech/ragenix"; - }; - # Nix User Repository nur = { url = "github:nix-community/NUR"; @@ -118,8 +119,8 @@ , disko , deploy-rs , agenix - , agenix-rekey , ragenix + , agenix-rekey , nur , spicetify-nix , hardware diff --git a/machines/nixos/x86_64-linux/jeeves/configuration.nix b/machines/nixos/x86_64-linux/jeeves/configuration.nix index 360bcba..d1af5b3 100644 --- a/machines/nixos/x86_64-linux/jeeves/configuration.nix +++ b/machines/nixos/x86_64-linux/jeeves/configuration.nix @@ -4,7 +4,7 @@ inputs.hardware.nixosModules.common-cpu-amd inputs.hardware.nixosModules.common-gpu-amd ./disko.nix - inputs.agenix.nixosModules.default + inputs.ragenix.nixosModules.default inputs.agenix-rekey.nixosModules.default ./network.nix ./wireguard.nix