Skip to content

Commit

Permalink
nix-darwin: add extraModules option
Browse files Browse the repository at this point in the history
Co-authored-by: Nicolas Berbiche <[email protected]>
  • Loading branch information
Pacman99 and berbiche committed Feb 15, 2021
1 parent 4bb1cb1 commit 672b92b
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion nix-darwin/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ let
home.homeDirectory = config.users.users.${name}.home;
};
})
];
] ++ cfg.extraModules;
};

in
Expand Down Expand Up @@ -67,6 +67,15 @@ in
'';
};

extraModules = mkOption {
type = with types; listOf (oneOf [ attrs (functionTo attrs) path ]);
default = [ ];
example = "[ { home.packages = [ nixpkgs-fmt ]; } ]";
description = ''
Extra modules added to all users.
'';
};

verbose = mkEnableOption "verbose output on activation";

users = mkOption {
Expand Down

0 comments on commit 672b92b

Please sign in to comment.