diff options
author | Linnnus <[email protected]> | 2023-09-06 11:35:04 +0200 |
---|---|---|
committer | Linnnus <[email protected]> | 2023-09-06 11:35:04 +0200 |
commit | 1b13a31cfedae20da0a9aed7b8768a6432889b65 (patch) | |
tree | 2fb869e77df73fcc28eeef78dc79b7c39e21fd2d /flake.nix | |
parent | 17d483c8c8a96fad2200acaf802b7ef0b0eb494d (diff) |
more stuff
Diffstat (limited to 'flake.nix')
-rw-r--r-- | flake.nix | 14 |
1 files changed, 10 insertions, 4 deletions
@@ -14,15 +14,21 @@ }; outputs = { nixpkgs, home-manager, nix-darwin, ... }@inputs: + let + args = { + flakeInputs = inputs; + misc.metadata = nixpkgs.lib.importTOML ./metadata.toml; + }; + in { darwinConfigurations = { muhammed = nix-darwin.lib.darwinSystem { inherit inputs; system = "aarch64-darwin"; modules = [ - { _module.args = { flakeInputs = inputs; }; } - ./hosts/muhammed/configuration.nix + { _module.args = args; } home-manager.darwinModules.home-manager + ./hosts/muhammed/configuration.nix ./use-cases/default.nix ]; }; @@ -32,9 +38,9 @@ ahmed = nixpkgs.lib.nixosSystem { system = "x86_64-linux"; modules = [ - { _module.args = { flakeInputs = inputs; }; } - ./hosts/ahmed/configuration.nix + { _module.args = args; } home-manager.nixosModules.home-manager + ./hosts/ahmed/configuration.nix ./use-cases/default.nix ]; }; |