Compare commits
5 Commits
fada73a69c
...
dev
| Author | SHA1 | Date | |
|---|---|---|---|
| f0860c2602 | |||
| 54d4d5aadf | |||
| 3b386828af | |||
| 300b407208 | |||
| 711b1f198e |
6
.gitmodules
vendored
6
.gitmodules
vendored
@@ -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
8
flake.lock
generated
@@ -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": {
|
||||
|
||||
@@ -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
@@ -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;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -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})
|
||||
|
||||
@@ -121,6 +121,7 @@
|
||||
"--network-alias=server"
|
||||
"--network-alias=authentik-server"
|
||||
"--network-alias=${name}"
|
||||
"--ip=192.168.101.6"
|
||||
];
|
||||
networks = [
|
||||
"docker-main"
|
||||
|
||||
Reference in New Issue
Block a user