mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-03-27 11:51:32 +01:00
fix: agenix on nix-darwin, update flake.nix
This commit is contained in:
@@ -12,7 +12,6 @@
|
||||
in
|
||||
{
|
||||
name,
|
||||
nodes,
|
||||
...
|
||||
}: {
|
||||
deployment = {
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
nixos-modules,
|
||||
home-module,
|
||||
}: let
|
||||
username = specialArgs.username;
|
||||
inherit (specialArgs) username;
|
||||
in
|
||||
nixpkgs.lib.nixosSystem {
|
||||
inherit system specialArgs;
|
||||
|
||||
Reference in New Issue
Block a user