summaryrefslogtreecommitdiff
path: root/systems/default.nix
diff options
context:
space:
mode:
authorseth <[email protected]>2024-02-02 16:13:17 -0500
committerseth <[email protected]>2024-02-02 19:22:07 -0500
commit1e32ab22f3fc2a4959f90ded95d7318bd4e23623 (patch)
treea38ddb5f3fe720bc140f6a10cd41fd820adb4a5f /systems/default.nix
parent9758b8236dcaafb958e6ef4f634d201af0bea80b (diff)
systems: use new configurations flakeModule
Diffstat (limited to 'systems/default.nix')
-rw-r--r--systems/default.nix64
1 files changed, 0 insertions, 64 deletions
diff --git a/systems/default.nix b/systems/default.nix
deleted file mode 100644
index ae37e1c..0000000
--- a/systems/default.nix
+++ /dev/null
@@ -1,64 +0,0 @@
-{
- lib,
- withSystem,
- inputs,
- self,
- ...
-}: let
- /*
- basic nixosSystem/darwinSystem wrapper; can override
- the exact builder by supplying an argument
- */
- toSystem = builder: name: args:
- (args.builder or builder) (
- (builtins.removeAttrs args ["builder"])
- // {
- modules = args.modules ++ [./${name}];
- specialArgs = {
- inherit inputs self;
- inputs' = withSystem (args.system or "x86_64-linux") ({inputs', ...}: inputs');
- secretsDir = ../secrets/${name};
- };
- }
- );
-
- mapSystems = builder: lib.mapAttrs (toSystem builder);
-
- mapDarwin = mapSystems inputs.darwin.lib.darwinSystem;
- mapNixOS = mapSystems inputs.nixpkgs.lib.nixosSystem;
- common = import ./common.nix {inherit inputs self;};
-in {
- imports = [./deploy.nix];
-
- flake = {
- darwinConfigurations = mapDarwin {
- caroline = {
- system = "x86_64-darwin";
- modules = common.darwin;
- };
- };
-
- nixosConfigurations = mapNixOS {
- glados = {
- system = "x86_64-linux";
- modules = common.personal;
- };
-
- glados-wsl = {
- system = "x86_64-linux";
- modules = common.personal;
- };
-
- atlas = {
- builder = inputs.nixpkgs-stable.lib.nixosSystem;
- system = "aarch64-linux";
- modules = common.server;
- };
- };
-
- legacyPackages.x86_64-linux.turret = withSystem "x86_64-linux" ({pkgs, ...}:
- pkgs.callPackage ./turret {
- inherit (inputs) openwrt-imagebuilder;
- });
- };
-}