diff options
| author | seth <[email protected]> | 2023-04-17 12:00:55 -0400 |
|---|---|---|
| committer | seth <[email protected]> | 2023-04-17 12:01:21 -0400 |
| commit | 92ca826539092f33c8e19a19c7a9ea0def2aece0 (patch) | |
| tree | c6ff98c3f645f189b559bc1a69904fec217a946c /flake.nix | |
| parent | 98921a299be9f22bde9204e1fd05d0ea0fb0c6ed (diff) | |
move most configurations to modules
Diffstat (limited to 'flake.nix')
| -rw-r--r-- | flake.nix | 15 |
1 files changed, 8 insertions, 7 deletions
@@ -74,16 +74,13 @@ ... }: let inherit - (import ./util { + (import ./lib { inherit (nixpkgs) lib; inherit inputs; }) mapHosts mapHMUsers ; - - users = import ./users {inherit inputs;}; - hosts = import ./hosts {inherit inputs;}; in flake-utils.lib.eachDefaultSystem (system: let pkgs = nixpkgs.legacyPackages.${system}; @@ -120,11 +117,15 @@ formatter = pkgs.alejandra; - homeConfigurations = mapHMUsers (users.users {inherit system;}); + homeConfigurations = mapHMUsers inputs system; + + packages = { + turret = pkgs.callPackage ./hosts/turret {inherit openwrt-imagebuilder;}; + }; }) // { - nixosConfigurations = mapHosts hosts; + nixosConfigurations = mapHosts inputs; - packages.x86_64-linux.turret = nixpkgs.legacyPackages.x86_64-linux.callPackage ./hosts/turret {inherit openwrt-imagebuilder;}; + nixosModules.getchoo = import ./modules; }; } |
