Compare commits

...

5 Commits

Author SHA1 Message Date
f0860c2602 fix docker 2026-04-19 10:21:54 -05:00
54d4d5aadf fix sops 2026-04-19 08:34:52 -05:00
3b386828af fix disko 2026-04-19 07:55:25 -05:00
300b407208 remove submodules 2026-04-19 00:32:04 -05:00
711b1f198e remote flakes 2026-04-19 00:27:55 -05:00
9 changed files with 18 additions and 42 deletions

6
.gitmodules vendored
View File

@@ -1,6 +0,0 @@
[submodule "machines/homebox"]
path = machines/homebox
url = ssh://gitea@gitea.esotericbytes.com:2222/Blunkall-Technologies/homebox
[submodule "machines/laptop"]
path = machines/laptop
url = ssh://gitea@gitea.esotericbytes.com:2222/Blunkall-Technologies/laptop

8
flake.lock generated
View File

@@ -47,11 +47,11 @@
"rev": "b2ec3d9cd0a6e52c4922b26d8b8e25823afd89d1",
"revCount": 52,
"type": "git",
"url": "file:///home/nathan/Projects/Aurora"
"url": "https://gitea.esotericbytes.com/Blunkall-Technologies/Aurora"
},
"original": {
"type": "git",
"url": "file:///home/nathan/Projects/Aurora"
"url": "https://gitea.esotericbytes.com/Blunkall-Technologies/Aurora"
}
},
"disko": {
@@ -770,11 +770,11 @@
"rev": "a62d8ce7f86424a297adead378be5f5a441add3c",
"revCount": 39,
"type": "git",
"url": "file:///home/nathan/Projects/Moirai"
"url": "https://gitea.esotericbytes.com/Blunkall-Technologies/Moirai"
},
"original": {
"type": "git",
"url": "file:///home/nathan/Projects/Moirai"
"url": "https://gitea.esotericbytes.com/Blunkall-Technologies/Moirai"
}
},
"nixvim_2": {

View File

@@ -32,11 +32,11 @@
hyprland.url = "git+https://github.com/hyprwm/Hyprland?submodules=1";
#nixvim.url = "git+https://gitea.esotericbytes.com/Blunkall-Technologies/Moirai";
nixvim.url = "git+file:///home/nathan/Projects/Moirai";
nixvim.url = "git+https://gitea.esotericbytes.com/Blunkall-Technologies/Moirai";
#nixvim.url = "git+file:///home/nathan/Projects/Moirai";
#aurora.url = "git+https://gitea.esotericbytes.com/Blunkall-Technologies/Aurora";
aurora.url = "git+file:///home/nathan/Projects/Aurora";
aurora.url = "git+https://gitea.esotericbytes.com/Blunkall-Technologies/Aurora";
#aurora.url = "git+file:///home/nathan/Projects/Aurora";
};
outputs = { ... } @ inputs:

Submodule machines/homebox deleted from e3e98541fa

Submodule machines/laptop deleted from ae51730c19

View File

@@ -3,8 +3,9 @@
flake.nixosConfigurations."homebox" = inputs.nixpkgs.lib.nixosSystem {
modules = [
self.nixosModules.homebox
self.nixosModules.default
self.nixosModules.homebox
self.diskoConfigurations.homebox
];
};
@@ -12,11 +13,6 @@
{
imports = [ # Include the results of the hardware scan.
(import ./disko.nix { device1 = "/dev/nvme0n1"; device2 = "/dev/nvme1n1"; device3 = "/dev/sda"; })
];
config = {
services = {
@@ -62,6 +58,10 @@
"nathan/pass" = {
neededForUsers = true;
};
"remoteBuildClientKeys/laptop".sopsFile = ./../../system/secrets.yaml;
"remoteBuildClientKeys/pi4".sopsFile = ./../../system/secrets.yaml;
"remoteBuildClientKeys/android".sopsFile = ./../../system/secrets.yaml;
};
};

View File

@@ -1,15 +1,10 @@
{ ... }: {
flake.diskoConfigurations.homebox = {
device1 ? throw "Set this to your disk device, e.g. /dev/sda",
device2,
device3,
...
}: {
disko.devices = {
disk = {
main = {
device = device1;
device = "/dev/nvme0n1";
type = "disk";
content = {
type = "gpt";
@@ -48,7 +43,7 @@
};
};
ssd1 = {
device = device2;
device = "/dev/nvme1n1";
type = "disk";
content = {
type = "gpt";
@@ -65,7 +60,7 @@
};
};
hdd1 = {
device = device3;
device = "/dev/sda";
type = "disk";
content = {
type = "gpt";

View File

@@ -60,18 +60,6 @@
createHome = false;
};
sops.secrets = let
dir = builtins.readDir ../machines;
in lib.mkIf config.sysconfig.remoteBuildHost (builtins.listToAttrs
(builtins.map
(y: { name = "remoteBuildClientKeys/${y}"; value = { sopsFile = ./secrets.yaml; }; })
(builtins.filter
(x: dir.${x} == "directory" && (import ../machines/${x} { config = {}; inputs = {}; inherit lib pkgs; }).config.sysconfig.remoteBuildClient)
(builtins.attrNames dir)
)
)
);
sops.templates."remote-builder" = lib.mkIf config.sysconfig.remoteBuildHost {
content = builtins.concatStringsSep ''''\n'' (builtins.map
(y: config.sops.placeholder.${y})

View File

@@ -121,6 +121,7 @@
"--network-alias=server"
"--network-alias=authentik-server"
"--network-alias=${name}"
"--ip=192.168.101.6"
];
networks = [
"docker-main"