mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 04:19:19 -08:00
refactor: get rid of config folder
This commit is contained in:
parent
2606e1d874
commit
cb3ae5f434
254 changed files with 79 additions and 101 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -3,3 +3,4 @@
|
||||||
/.direnv/
|
/.direnv/
|
||||||
/wiki
|
/wiki
|
||||||
.DS_Store
|
.DS_Store
|
||||||
|
tf/
|
||||||
|
|
|
||||||
|
|
@ -1 +1,3 @@
|
||||||
/config/trusted/tf/
|
/config/trusted/tf/
|
||||||
|
/config/tf
|
||||||
|
/tf
|
||||||
|
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
Subproject commit 84b1742d36714279de336e2bee37848d0b3b6de8
|
|
||||||
24
flake.lock
generated
24
flake.lock
generated
|
|
@ -96,11 +96,11 @@
|
||||||
"nixpkgs": "nixpkgs"
|
"nixpkgs": "nixpkgs"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1657275959,
|
"lastModified": 1657305762,
|
||||||
"narHash": "sha256-pg8FB1DRImBpqXHCp/0Y7bIphpVqGmkWgWOcFDMwdTg=",
|
"narHash": "sha256-dsuJG/y2LtqyHhDEIo3d3g/+K9IqhG3qt/tf7WYheH4=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "emacs-overlay",
|
"repo": "emacs-overlay",
|
||||||
"rev": "22448c09bae21969ca14d1558a120dafe9853c73",
|
"rev": "eae26b7d5fc04699078a1687185d65077bc73c96",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
@ -342,12 +342,11 @@
|
||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1657208011,
|
"lastModified": 1657114324,
|
||||||
"narHash": "sha256-BlIFwopAykvdy1DYayEkj6ZZdkn+cVgPNX98QVLc0jM=",
|
"narHash": "sha256-fWuaUNXrHcz/ciHRHlcSO92dvV3EVS0GJQUSBO5JIB4=",
|
||||||
"owner": "NixOS",
|
"path": "/nix/store/7x87vd43nvg8pkcmya5ivl34q5y8kp9b-source",
|
||||||
"repo": "nixpkgs",
|
"rev": "a5c867d9fe9e4380452628e8f171c26b69fa9d3d",
|
||||||
"rev": "2770cc0b1e8faa0e20eb2c6aea64c256a706d4f2",
|
"type": "path"
|
||||||
"type": "github"
|
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"id": "nixpkgs",
|
"id": "nixpkgs",
|
||||||
|
|
@ -388,11 +387,11 @@
|
||||||
},
|
},
|
||||||
"nur": {
|
"nur": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1657272425,
|
"lastModified": 1657315594,
|
||||||
"narHash": "sha256-Y1vbPYhUi0ZKqn6XxQeE/RnyMcfHIE0YCkR1iPGoToo=",
|
"narHash": "sha256-lkAqmREtGhWwHK3wdVSfqt+Q+xUhZmQ0UZyubeMJLR4=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "nur",
|
"repo": "nur",
|
||||||
"rev": "4a0d26d6ccb60f24a5e771c6de4c64622fb2b4af",
|
"rev": "fae381cd12525fdfb5163ce0ac78c2705d5917c4",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
@ -567,6 +566,7 @@
|
||||||
"trusted": {
|
"trusted": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
|
"lastModified": 1,
|
||||||
"narHash": "sha256-Q3QXOoy+iN4VK2CflvRulYvPZXYgF0dO7FoF7CvWFTA=",
|
"narHash": "sha256-Q3QXOoy+iN4VK2CflvRulYvPZXYgF0dO7FoF7CvWFTA=",
|
||||||
"path": "./empty/.",
|
"path": "./empty/.",
|
||||||
"type": "path"
|
"type": "path"
|
||||||
|
|
|
||||||
|
|
@ -31,13 +31,13 @@ let
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
(toString (inputs.tf-nix + "/modules/run.nix"))
|
"${toString inputs.tf-nix}/modules/run.nix"
|
||||||
] ++ (optional (builtins.pathExists ../../tf/tf.nix) (../../tf/tf.nix));
|
] ++ (optional (builtins.pathExists ../../tf/tf.nix) (../../tf/tf.nix));
|
||||||
options = {
|
options = {
|
||||||
deploy = {
|
deploy = {
|
||||||
dataDir = mkOption {
|
dataDir = mkOption {
|
||||||
type = types.path;
|
type = types.path;
|
||||||
default = ../../../tf;
|
default = ../../tf;
|
||||||
};
|
};
|
||||||
local = {
|
local = {
|
||||||
isRoot = mkOption {
|
isRoot = mkOption {
|
||||||
|
|
@ -25,19 +25,19 @@ with lib;
|
||||||
config = {
|
config = {
|
||||||
network.importing = {
|
network.importing = {
|
||||||
nixosImports = mkDefault (map (path: toString path) [
|
nixosImports = mkDefault (map (path: toString path) [
|
||||||
(root + "/config/nodes/nixos/HN.nix")
|
(root + "/nodes/nixos/HN.nix")
|
||||||
(root + "/config/nodes/nixos/HN/nixos.nix")
|
(root + "/nodes/nixos/HN/nixos.nix")
|
||||||
(root + "/config/trusted/nodes/nixos/HN/nixos.nix")
|
(root + "/trusted/nodes/nixos/HN/nixos.nix")
|
||||||
]);
|
]);
|
||||||
darwinImports = mkDefault (map (path: toString path) [
|
darwinImports = mkDefault (map (path: toString path) [
|
||||||
(root + "/config/nodes/darwin/HN.nix")
|
(root + "/nodes/darwin/HN.nix")
|
||||||
(root + "/config/nodes/darwin/HN/darwin.nix")
|
(root + "/nodes/darwin/HN/darwin.nix")
|
||||||
(root + "/config/trusted/nodes/darwin/HN/darwin.nix")
|
(root + "/trusted/nodes/darwin/HN/darwin.nix")
|
||||||
]);
|
]);
|
||||||
homeImports = mkDefault (map (path: toString path) [
|
homeImports = mkDefault (map (path: toString path) [
|
||||||
(root + "/config/nodes/nixos/HN/home.nix")
|
(root + "/nodes/nixos/HN/home.nix")
|
||||||
(root + "/config/nodes/darwin/HN/home.nix")
|
(root + "/nodes/darwin/HN/home.nix")
|
||||||
(root + "/config/trusted/nodes/HN/home.nix")
|
(root + "/trusted/nodes/HN/home.nix")
|
||||||
]);
|
]);
|
||||||
users = mkDefault (singleton "kat");
|
users = mkDefault (singleton "kat");
|
||||||
};
|
};
|
||||||
|
|
@ -5,7 +5,9 @@
|
||||||
users.kat.darwin
|
users.kat.darwin
|
||||||
users.kat.dev
|
users.kat.dev
|
||||||
];
|
];
|
||||||
|
|
||||||
security.pam.enableSudoTouchIdAuth = true;
|
security.pam.enableSudoTouchIdAuth = true;
|
||||||
|
|
||||||
homebrew = {
|
homebrew = {
|
||||||
brewPrefix = "/opt/homebrew/bin";
|
brewPrefix = "/opt/homebrew/bin";
|
||||||
casks = [
|
casks = [
|
||||||
|
|
@ -15,6 +17,7 @@
|
||||||
"discord"
|
"discord"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
awscli
|
awscli
|
||||||
jq
|
jq
|
||||||
14
outputs.nix
14
outputs.nix
|
|
@ -7,8 +7,20 @@
|
||||||
mkTree = import ./tree.nix { inherit lib; };
|
mkTree = import ./tree.nix { inherit lib; };
|
||||||
localTree = mkTree {
|
localTree = mkTree {
|
||||||
inherit inputs;
|
inherit inputs;
|
||||||
folder = ./config;
|
folder = ./.;
|
||||||
config = {
|
config = {
|
||||||
|
"/" = {
|
||||||
|
excludes = [
|
||||||
|
"tf"
|
||||||
|
"inputs"
|
||||||
|
"tree"
|
||||||
|
"flake"
|
||||||
|
"meta"
|
||||||
|
"outputs"
|
||||||
|
"inputs"
|
||||||
|
"trusted"
|
||||||
|
];
|
||||||
|
};
|
||||||
"modules/nixos" = {
|
"modules/nixos" = {
|
||||||
functor = {
|
functor = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
||||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue