From 80321e46cbd2e436aa4b1c0edfcd5de2c71abcd0 Mon Sep 17 00:00:00 2001 From: seth Date: Sun, 4 Feb 2024 16:07:57 -0500 Subject: flakeModules/configurations: import nixos/darwin modules by default --- systems/default.nix | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 systems/default.nix (limited to 'systems') diff --git a/systems/default.nix b/systems/default.nix new file mode 100644 index 0000000..964df12 --- /dev/null +++ b/systems/default.nix @@ -0,0 +1,49 @@ +{ + withSystem, + inputs, + ... +}: { + imports = [./deploy.nix]; + + configurations = { + nixos = { + builder = inputs.nixpkgs.lib.nixosSystem; + + modules = [ + inputs.agenix.nixosModules.default + inputs.hm.nixosModules.home-manager + ]; + + systems = { + glados = {}; + + glados-wsl = {}; + + atlas = { + builder = inputs.nixpkgs-stable.lib.nixosSystem; + system = "aarch64-linux"; + }; + }; + }; + + darwin = { + builder = inputs.darwin.lib.darwinSystem; + + modules = [ + inputs.hm.darwinModules.home-manager + ]; + + systems = { + caroline = {}; + }; + }; + }; + + flake.legacyPackages.x86_64-linux = withSystem "x86_64-linux" ({pkgs, ...}: { + openWrtImages = { + turret = pkgs.callPackage ./systems/turret { + inherit (inputs) openwrt-imagebuilder; + }; + }; + }); +} -- cgit v1.2.3