mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 04:19:19 -08:00
feat: clean up the repo
This commit is contained in:
parent
bc9c310c77
commit
f6ec9f37eb
249 changed files with 804 additions and 13048 deletions
60
flake.nix
60
flake.nix
|
|
@ -14,19 +14,6 @@
|
|||
url = "github:nix-community/home-manager/master";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
darwin = {
|
||||
url = "github:lnl7/nix-darwin/master";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
nix-dns = {
|
||||
url = "github:kirelagin/nix-dns/master";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
inputs.flake-utils.follows = "flake-utils";
|
||||
};
|
||||
tf-nix = {
|
||||
url = "github:arcnmx/tf-nix/master";
|
||||
flake = false;
|
||||
};
|
||||
trusted = {
|
||||
url = "github:input-output-hk/empty-flake";
|
||||
};
|
||||
|
|
@ -34,13 +21,6 @@
|
|||
url = "github:edolstra/flake-compat";
|
||||
flake = false;
|
||||
};
|
||||
nix-doom-emacs = {
|
||||
url = "github:nix-community/nix-doom-emacs";
|
||||
inputs = {
|
||||
nixpkgs.follows = "nixpkgs";
|
||||
flake-utils.follows = "flake-utils";
|
||||
};
|
||||
};
|
||||
nur.url = "github:nix-community/nur/master";
|
||||
flake-utils.url = "github:numtide/flake-utils";
|
||||
sops-nix = {
|
||||
|
|
@ -55,22 +35,26 @@
|
|||
};
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs, flake-utils, ... }@inputs: let
|
||||
providedSystems = flake-utils.lib.eachDefaultSystem
|
||||
(system:
|
||||
rec {
|
||||
devShells.default = import ./devShell.nix { inherit system inputs; };
|
||||
legacyPackages = import ./meta.nix { inherit system inputs; };
|
||||
});
|
||||
in providedSystems // {
|
||||
nixosConfigurations = builtins.mapAttrs (_: config: config // {
|
||||
inherit config;
|
||||
}) self.legacyPackages.x86_64-linux.network.nodes.nixos;
|
||||
darwinConfigurations = builtins.mapAttrs (_: config: {
|
||||
inherit (config.deploy) pkgs;
|
||||
inherit config;
|
||||
|
||||
system = config.system.build.toplevel;
|
||||
}) self.legacyPackages.aarch64-darwin.network.nodes.darwin;
|
||||
};
|
||||
outputs = {
|
||||
self,
|
||||
nixpkgs,
|
||||
flake-utils,
|
||||
...
|
||||
} @ inputs: let
|
||||
providedSystems =
|
||||
flake-utils.lib.eachDefaultSystem
|
||||
(system: rec {
|
||||
devShells.default = import ./devShell.nix {inherit system inputs;};
|
||||
legacyPackages = import ./meta.nix {inherit system inputs;};
|
||||
});
|
||||
in
|
||||
providedSystems
|
||||
// {
|
||||
nixosConfigurations = builtins.mapAttrs (_: config:
|
||||
config
|
||||
// {
|
||||
inherit config;
|
||||
})
|
||||
self.legacyPackages.x86_64-linux.network.nodes;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue