diff options
| author | Baitinq <[email protected]> | 2022-09-21 19:15:50 +0200 |
|---|---|---|
| committer | Baitinq <[email protected]> | 2022-09-22 00:18:59 +0200 |
| commit | 242c2b6bf1649887ac9bdc8ef83f853c9fb91cc9 (patch) | |
| tree | 65cfc499bc1997a0c3a2591a83f84421027938de /flake.nix | |
| parent | mkHost: Add extraModules argument (diff) | |
| download | nixos-config-242c2b6bf1649887ac9bdc8ef83f853c9fb91cc9.tar.gz nixos-config-242c2b6bf1649887ac9bdc8ef83f853c9fb91cc9.tar.bz2 nixos-config-242c2b6bf1649887ac9bdc8ef83f853c9fb91cc9.zip | |
Flake: Add systems as 'input' to the nix derivation
Diffstat (limited to 'flake.nix')
| -rw-r--r-- | flake.nix | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/flake.nix b/flake.nix index 97627c2..9d87f10 100644 --- a/flake.nix +++ b/flake.nix @@ -32,8 +32,8 @@ dotfiles = ./dotfiles; hosts = [ - { host = "phobos"; system = "x86_64-linux"; extraOverlays = [ ]; extraModules = [ ]; timezone = secrets.main_timezone; location = secrets.main_location; } - { host = "luna"; system = "x86_64-linux"; extraOverlays = [ ]; extraModules = [ ]; timezone = secrets.main_timezone; location = secrets.main_location; } + { host = "phobos"; extraOverlays = [ ]; extraModules = [ ]; timezone = secrets.main_timezone; location = secrets.main_location; } + { host = "luna"; extraOverlays = [ ]; extraModules = [ ]; timezone = secrets.main_timezone; location = secrets.main_location; } ]; hardwares = [ @@ -42,11 +42,18 @@ { hardware = "virtualbox"; } ]; + systems = [ + { system = "x86_64-linux"; } + { system = "x86_64-darwin"; } + { system = "aarch64-linux"; } + { system = "aarch64-darwin"; } + ]; + commonInherits = { inherit (nixpkgs) lib; inherit inputs nixpkgs home-manager; - inherit user secrets dotfiles hosts hardwares; + inherit user secrets dotfiles hosts hardwares systems; }; in { |