fix: agenix on nix-darwin, update flake.nix

This commit is contained in:
Ryan Yin
2023-12-18 12:59:41 +08:00
parent 8d83ded0fb
commit dbe62811c7
17 changed files with 90 additions and 113 deletions

View File

@@ -12,7 +12,6 @@
in
{
name,
nodes,
...
}: {
deployment = {

View File

@@ -15,6 +15,7 @@ in
darwin-modules
++ [
({lib, ...}: {
nixpkgs.pkgs = import nixpkgs {inherit system;};
# make `nix run nixpkgs#nixpkgs` use the same nixpkgs as the one used by this flake.
nix.registry.nixpkgs.flake = nixpkgs;

View File

@@ -7,7 +7,7 @@
nixos-modules,
home-module,
}: let
username = specialArgs.username;
inherit (specialArgs) username;
in
nixpkgs.lib.nixosSystem {
inherit system specialArgs;