diff options
| author | seth <[email protected]> | 2024-02-02 16:13:17 -0500 |
|---|---|---|
| committer | seth <[email protected]> | 2024-02-02 19:22:07 -0500 |
| commit | 1e32ab22f3fc2a4959f90ded95d7318bd4e23623 (patch) | |
| tree | a38ddb5f3fe720bc140f6a10cd41fd820adb4a5f /configs.nix | |
| parent | 9758b8236dcaafb958e6ef4f634d201af0bea80b (diff) | |
systems: use new configurations flakeModule
Diffstat (limited to 'configs.nix')
| -rw-r--r-- | configs.nix | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/configs.nix b/configs.nix new file mode 100644 index 0000000..cdb9216 --- /dev/null +++ b/configs.nix @@ -0,0 +1,62 @@ +{ + withSystem, + inputs, + self, + ... +}: let + common = import ./systems/common.nix {inherit inputs self;}; +in { + imports = [ + ./systems/deploy.nix + ./modules/flake/configurations.nix + ]; + + configurations = { + home = { + builder = inputs.hm.lib.homeManagerConfiguration; + pkgs = inputs.nixpkgs.legacyPackages.x86_64-linux; + + users = { + seth = {}; + }; + }; + + nixos = { + builder = inputs.nixpkgs.lib.nixosSystem; + + systems = { + glados = { + modules = common.personal; + }; + + glados-wsl = { + modules = common.personal; + }; + + atlas = { + builder = inputs.nixpkgs-stable.lib.nixosSystem; + system = "aarch64-linux"; + modules = common.server; + }; + }; + }; + + darwin = { + builder = inputs.darwin.lib.darwinSystem; + + systems = { + caroline = { + modules = common.darwin; + }; + }; + }; + }; + + flake.legacyPackages.x86_64-linux = withSystem "x86_64-linux" ({pkgs, ...}: { + openWrtImages = { + turret = pkgs.callPackage ./systems/turret { + inherit (inputs) openwrt-imagebuilder; + }; + }; + }); +} |
