Home

dotnix @main - refs - log -
-
https://git.jolheiser.com/dotnix.git
My nix dotfiles
tree log patch
chore: ragenix -> agenix, clean up entry Signed-off-by: jolheiser <john.olheiser@gmail.com>
Signature
-----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEgqEQpE3xoo1QwJO/uFOtpdp7v3oFAmSxfe0ACgkQuFOtpdp7 v3rH5Q//fZVCXChhSoNPr8rrb1H+W+Xi6N13U0JcVZ+AJMJ9C8OCDuP1D1SQIBOq gUmfZZMXzCwo/ZC0VGWkVjWh8JNUeNFmUepHl2m5cpcQT2K2yaFtyJmLxkYOPWdv +KJyC2GT0OmZeSPzYoGgLdmjo+J6iWwM6XBS7bQpIh6kOH6jzIJG3nYCRNJpYslX H/8l8JocIN/bxmgHLRDo3PafdUYO6G8biBWq1KGx7f6+qYBDSV0AgUdgaAV6gcNF pAvDYHQTxfiftKlul8A3sIBz68fkUSGRzwdQ71gTCy7MGLpk9KDhtbz8iKuWjA9B 0nL0ARd5JnvlV35rrp2g+6KEWXJtfRyCnSjZ0NPB0mTzg5iMyv53ochkcAu9T4Y9 up7jhtOVQoIrPvVO4RFwZ62tuJQn/KYpvgEV2/xhCjft2zXODY/hGQV7slwzPikk MUUioDlgWn4x8auu3d7Ih5sziEpn67KB5vnuIR/eQK1WPlCKsg4VEgDa69Wt472c A0EBR18CMwDYtV1mUItFO+QgNUvPXD7yef3ZlDzMpzWIPc/P7IAwmgVzA5X3XI3f THHCl3MJNT5OoM+KO4hIgjIuZu80ynrt3XzdF2vweQtLFKju9KP4PLek1zx5ce7J xyXm/WiiQGAAXBDSLi+JYHkBlO4GeC9kdHpon72F+VB5WGPyLRM= =G6+G -----END PGP SIGNATURE-----
jolheiser <john.olheiser@gmail.com>
2 years ago
3 changed files, 41 additions(+), 169 deletions(-)
flake.lockflake.nixmachines/common/default.nix
M flake.lockflake.lock
  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
diff --git a/flake.lock b/flake.lock
index f072a80aa1c20f827885c6896d9410cd24cc5a81..adc27d994a765c797cc4eb3dcd864d4c704e2b50 100644
--- a/flake.lock
+++ b/flake.lock
@@ -2,18 +2,18 @@ {
   "nodes": {
     "agenix": {
       "inputs": {
-        "darwin": "darwin",
+        "darwin": [],
+        "home-manager": "home-manager",
         "nixpkgs": [
-          "ragenix",
           "nixpkgs"
         ]
       },
       "locked": {
-        "lastModified": 1682101079,
-        "narHash": "sha256-MdAhtjrLKnk2uiqun1FWABbKpLH090oeqCSiWemtuck=",
+        "lastModified": 1689334118,
+        "narHash": "sha256-djk5AZv1yU84xlKFaVHqFWvH73U7kIRstXwUAnDJPsk=",
         "owner": "ryantm",
         "repo": "agenix",
-        "rev": "2994d002dcff5353ca1ac48ec584c7f6589fe447",
+        "rev": "0d8c5325fc81daf00532e3e26c6752f7bcde1143",
         "type": "github"
       },
       "original": {
@@ -22,75 +22,6 @@         "repo": "agenix",
         "type": "github"
       }
     },
-    "crane": {
-      "inputs": {
-        "flake-compat": "flake-compat",
-        "flake-utils": [
-          "ragenix",
-          "flake-utils"
-        ],
-        "nixpkgs": [
-          "ragenix",
-          "nixpkgs"
-        ],
-        "rust-overlay": [
-          "ragenix",
-          "rust-overlay"
-        ]
-      },
-      "locked": {
-        "lastModified": 1681680516,
-        "narHash": "sha256-EB8Adaeg4zgcYDJn9sR6UMjN/OHdIiMMK19+3LmmXQY=",
-        "owner": "ipetkov",
-        "repo": "crane",
-        "rev": "54b63c8eae4c50172cb50b612946ff1d2bc1c75c",
-        "type": "github"
-      },
-      "original": {
-        "owner": "ipetkov",
-        "repo": "crane",
-        "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"
-      }
-    },
-    "flake-compat": {
-      "flake": false,
-      "locked": {
-        "lastModified": 1673956053,
-        "narHash": "sha256-4gtG9iQuiKITOjNQQeQIpoIB6b16fm+504Ch3sNKLd8=",
-        "owner": "edolstra",
-        "repo": "flake-compat",
-        "rev": "35bb57c0c8d8b62bbfd284272c928ceb64ddbde9",
-        "type": "github"
-      },
-      "original": {
-        "owner": "edolstra",
-        "repo": "flake-compat",
-        "type": "github"
-      }
-    },
     "flake-utils": {
       "inputs": {
         "systems": "systems"
@@ -109,25 +40,28 @@         "repo": "flake-utils",
         "type": "github"
       }
     },
-    "flake-utils_2": {
+    "home-manager": {
       "inputs": {
-        "systems": "systems_2"
+        "nixpkgs": [
+          "agenix",
+          "nixpkgs"
+        ]
       },
       "locked": {
-        "lastModified": 1681202837,
-        "narHash": "sha256-H+Rh19JDwRtpVPAWp64F+rlEtxUWBAQW28eAi3SRSzg=",
-        "owner": "numtide",
-        "repo": "flake-utils",
-        "rev": "cfacdce06f30d2b68473a46042957675eebb3401",
+        "lastModified": 1682203081,
+        "narHash": "sha256-kRL4ejWDhi0zph/FpebFYhzqlOBrk0Pl3dzGEKSAlEw=",
+        "owner": "nix-community",
+        "repo": "home-manager",
+        "rev": "32d3e39c491e2f91152c84f8ad8b003420eab0a1",
         "type": "github"
       },
       "original": {
-        "owner": "numtide",
-        "repo": "flake-utils",
+        "owner": "nix-community",
+        "repo": "home-manager",
         "type": "github"
       }
     },
-    "home-manager": {
+    "home-manager_2": {
       "inputs": {
         "nixpkgs": [
           "nixpkgs"
@@ -212,81 +146,17 @@         "repo": "nur",
         "type": "github"
       }
     },
-    "ragenix": {
+    "root": {
       "inputs": {
         "agenix": "agenix",
-        "crane": "crane",
-        "flake-utils": "flake-utils_2",
-        "nixpkgs": [
-          "nixpkgs"
-        ],
-        "rust-overlay": "rust-overlay"
-      },
-      "locked": {
-        "lastModified": 1682237245,
-        "narHash": "sha256-xbBR7LNK+d5Yi/D6FXQGc1R6u2VV2nwr/Df5iaEbOEQ=",
-        "owner": "yaxitech",
-        "repo": "ragenix",
-        "rev": "281f68c3d477904f79ff1cd5807a8c226cd80a50",
-        "type": "github"
-      },
-      "original": {
-        "owner": "yaxitech",
-        "repo": "ragenix",
-        "type": "github"
-      }
-    },
-    "root": {
-      "inputs": {
         "flake-utils": "flake-utils",
-        "home-manager": "home-manager",
+        "home-manager": "home-manager_2",
         "jolheiser-nur": "jolheiser-nur",
         "nixpkgs": "nixpkgs_2",
-        "nur": "nur",
-        "ragenix": "ragenix"
-      }
-    },
-    "rust-overlay": {
-      "inputs": {
-        "flake-utils": [
-          "ragenix",
-          "flake-utils"
-        ],
-        "nixpkgs": [
-          "ragenix",
-          "nixpkgs"
-        ]
-      },
-      "locked": {
-        "lastModified": 1682129965,
-        "narHash": "sha256-1KRPIorEL6pLpJR04FwAqqnt4Tzcm4MqD84yhlD+XSk=",
-        "owner": "oxalica",
-        "repo": "rust-overlay",
-        "rev": "2c417c0460b788328220120c698630947547ee83",
-        "type": "github"
-      },
-      "original": {
-        "owner": "oxalica",
-        "repo": "rust-overlay",
-        "type": "github"
+        "nur": "nur"
       }
     },
     "systems": {
-      "locked": {
-        "lastModified": 1681028828,
-        "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
-        "owner": "nix-systems",
-        "repo": "default",
-        "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
-        "type": "github"
-      },
-      "original": {
-        "owner": "nix-systems",
-        "repo": "default",
-        "type": "github"
-      }
-    },
-    "systems_2": {
       "locked": {
         "lastModified": 1681028828,
         "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
M flake.nixflake.nix
  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
diff --git a/flake.nix b/flake.nix
index f07510df19e5fa0a0bdfd8228493f8f81d397edd..c5f166c84b708fdb4f04cac9b075a676ffd9b141 100644
--- a/flake.nix
+++ b/flake.nix
@@ -5,21 +5,22 @@   inputs = {
     nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
     home-manager.url = "github:nix-community/home-manager";
     home-manager.inputs.nixpkgs.follows = "nixpkgs";
-    ragenix.url = "github:yaxitech/ragenix";
-    ragenix.inputs.nixpkgs.follows = "nixpkgs";
+    agenix.url = "github:ryantm/agenix";
+    agenix.inputs = {
+      nixpkgs.follows = "nixpkgs";
+      darwin.follows = "";
+    };
     flake-utils.url = "github:numtide/flake-utils";
 
     nur.url = "github:nix-community/nur";
     jolheiser-nur.url = "git+https://git.jojodev.com/jolheiser/nur";
   };
 
-  nixConfig = {warn-dirty = false;};
-
   outputs = {
     self,
     nixpkgs,
     home-manager,
-    ragenix,
+    agenix,
     jolheiser-nur,
     ...
   } @ inputs: let
@@ -32,7 +33,7 @@           jolheiser = import jolheiser-nur {pkgs = prev;};
         };
       };
     };
-    commonConfig = {username}: ({
+    commonConfig = {
       config,
       pkgs,
       ...
@@ -50,19 +51,20 @@         };
         age.secrets = {
           ssh-config = {
             file = ./secrets/shared/ssh-config.age;
-            owner = "jolheiser";
+            owner = username;
           };
           ssh-config-work = {
             file = ./secrets/shared/ssh-config-work.age;
-            owner = "jolheiser";
+            owner = username;
           };
           spotify-pw = {
             file = ./secrets/shared/spotify-pw.age;
-            owner = "jolheiser";
+            owner = username;
           };
         };
       };
-    });
+    };
+    username = "jolheiser";
   in
     {
       nixosConfigurations = {
@@ -70,12 +72,12 @@         "chai" = nixpkgs.lib.nixosSystem {
           system = "x86_64-linux";
           modules = [
             home-manager.nixosModules.home-manager
-            ragenix.nixosModules.default
+            agenix.nixosModules.default
             ./machines/common
             ./machines/chai
-            (commonConfig {username = "jolheiser";})
+            commonConfig
             ({pkgs, ...}: {
-              home-manager.users.jolheiser.programs.git.package = pkgs.gitSVN;
+              home-manager.users.${username}.programs.git.package = pkgs.gitSVN;
             })
           ];
         };
@@ -83,10 +85,10 @@         "matcha" = nixpkgs.lib.nixosSystem {
           system = "x86_64-linux";
           modules = [
             home-manager.nixosModules.home-manager
-            ragenix.nixosModules.default
+            agenix.nixosModules.default
             ./machines/common
             ./machines/matcha
-            (commonConfig {username = "jolheiser";})
+            commonConfig
           ];
         };
       };
@@ -95,9 +97,8 @@     // inputs.flake-utils.lib.eachDefaultSystem (system: let
       pkgs = nixpkgs.legacyPackages.${system};
     in {
       devShells.default = pkgs.mkShell {
-        nativeBuildInputs = with pkgs; [
-          just
-          ragenix.packages.${system}.ragenix
+        nativeBuildInputs = [
+          agenix.packages.${system}.agenix
         ];
       };
     });
M machines/common/default.nixmachines/common/default.nix
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
diff --git a/machines/common/default.nix b/machines/common/default.nix
index b181e9515b3a43f5c87a26cc9c7995ab0eeb5010..3fb310e92234f9911b5002ede171ddb893cc4cd3 100644
--- a/machines/common/default.nix
+++ b/machines/common/default.nix
@@ -49,6 +49,7 @@     package = pkgs.nixVersions.nix_2_15;
     settings = {
       experimental-features = ["flakes" "nix-command" "repl-flake"];
       auto-optimise-store = true;
+      warn-dirty = false;
     };
   };