summaryrefslogtreecommitdiff
path: root/flake
diff options
context:
space:
mode:
authorseth <[email protected]>2023-05-05 02:44:22 -0400
committerseth <[email protected]>2023-05-05 02:44:22 -0400
commit3051d75c5ebe4284a6d50f1ea2b3a2f39e01a38d (patch)
tree913db0783129b37a76a538cf9743afc2365dbee8 /flake
parent4f1cc719a12ed27b23f2830489db3845c36c88ed (diff)
flake: restructure a lot
Diffstat (limited to 'flake')
-rw-r--r--flake/ci.nix8
-rw-r--r--flake/configs.nix28
-rw-r--r--flake/default.nix1
-rw-r--r--flake/dev.nix4
4 files changed, 8 insertions, 33 deletions
diff --git a/flake/ci.nix b/flake/ci.nix
index 3959260..91dc397 100644
--- a/flake/ci.nix
+++ b/flake/ci.nix
@@ -1,6 +1,6 @@
{
- inputs,
self,
+ inputs,
...
}: let
inherit (inputs) hercules-ci-effects nixpkgs;
@@ -20,7 +20,11 @@ in {
};
herculesCI = let
- inherit (import (hercules-ci-effects + "/vendor/hercules-ci-agent/default-herculesCI-for-flake.nix")) flakeToOutputs;
+ inherit
+ (import
+ (hercules-ci-effects + "/vendor/hercules-ci-agent/default-herculesCI-for-flake.nix"))
+ flakeToOutputs
+ ;
in rec {
ciSystems = [
"x86_64-linux"
diff --git a/flake/configs.nix b/flake/configs.nix
deleted file mode 100644
index 9660616..0000000
--- a/flake/configs.nix
+++ /dev/null
@@ -1,28 +0,0 @@
-{
- inputs,
- self,
- ...
-}: let
- inherit (inputs) nixinate openwrt-imagebuilder;
- inherit ((inputs.getchoo.lib inputs).configs) mapHMUsers mapHosts;
-in {
- flake = {
- nixosConfigurations = mapHosts ../hosts;
-
- nixosModules.getchoo = import ../modules;
- };
-
- perSystem = {
- pkgs,
- system,
- ...
- }: {
- apps = (nixinate.nixinate.${system} self).nixinate;
-
- legacyPackages.homeConfigurations = mapHMUsers system ../users;
-
- packages = {
- turret = pkgs.callPackage ../hosts/_turret {inherit openwrt-imagebuilder;};
- };
- };
-}
diff --git a/flake/default.nix b/flake/default.nix
index a479898..29c6c63 100644
--- a/flake/default.nix
+++ b/flake/default.nix
@@ -1,6 +1,5 @@
_: {
imports = [
- ./configs.nix
./ci.nix
./dev.nix
];
diff --git a/flake/dev.nix b/flake/dev.nix
index 700c795..223f1d8 100644
--- a/flake/dev.nix
+++ b/flake/dev.nix
@@ -3,7 +3,7 @@
inputs,
...
}: let
- inherit (inputs) pre-commit-hooks ragenix;
+ inherit (inputs) pre-commit-hooks;
in {
perSystem = {
pkgs,
@@ -12,7 +12,7 @@ in {
}: {
checks = {
pre-commit-check = pre-commit-hooks.lib.${system}.run {
- src = ./.;
+ src = ./..;
hooks = {
actionlint.enable = true;
alejandra.enable = true;