Move modules to shared

This commit is contained in:
Greg Hellings
2023-12-29 23:36:40 -06:00
parent 5955faa0e2
commit 5dad72c5cd
21 changed files with 22 additions and 14 deletions
+1 -2
View File
@@ -8,8 +8,7 @@
imports = imports =
[ # Include the results of the hardware scan. [ # Include the results of the hardware scan.
./hardware-configuration.nix ./hardware-configuration.nix
./modules-all/ ./modules/
./modules-linux/
]; ];
# Bootloader. # Bootloader.
+1 -2
View File
@@ -31,8 +31,7 @@ let
}; };
users.users."gregory.hellings".home = "/Users/gregory.hellings"; users.users."gregory.hellings".home = "/Users/gregory.hellings";
} }
../modules-all ../modules
../modules-darwin
./${name} ./${name}
] ++ extraMods; ] ++ extraMods;
}; };
-3
View File
@@ -84,9 +84,6 @@
})); }));
overlays = { default = local_overlay; }; overlays = { default = local_overlay; };
modules = (import ./modules-all {}) //
(import ./modules-linux {}) //
(import ./modules-darwin {});
packages = (import ./overlays/packages.nix { inherit nixunstable flake-utils; }); packages = (import ./overlays/packages.nix { inherit nixunstable flake-utils; });
}; };
} }
+1 -2
View File
@@ -35,8 +35,7 @@ let
} }
inputs.agenix.nixosModules.default inputs.agenix.nixosModules.default
hm.nixosModules.home-manager hm.nixosModules.home-manager
../modules-all ../modules
../modules-linux
./${name} ./${name}
] ++ extraMods; ] ++ extraMods;
}; };
+12 -4
View File
@@ -6,8 +6,8 @@
in { in {
imports = [ imports = [
inputs.agenix.nixosModules.default inputs.agenix.nixosModules.default
../../modules-linux/proxy.nix ../../modules/linux/proxy.nix
../../modules-linux/tailscale.nix ../../modules/linux/tailscale.nix
]; ];
age.identityPaths = [ "/etc/ssh/ssh_host_ed25519_key" ]; age.identityPaths = [ "/etc/ssh/ssh_host_ed25519_key" ];
@@ -133,8 +133,16 @@ in {
# Do not start nginx until we have tailscaled up and running, so it can bind # Do not start nginx until we have tailscaled up and running, so it can bind
# to the 100.* addresses # to the 100.* addresses
systemd.services.nginx = { systemd.services.nginx = {
after = [ "tailscaled.service" ]; after = [
requires = [ "tailscaled.service" ]; "tailscaled.service"
"network.target"
"network-online.target"
];
wants = [
"tailscaled.service"
"network.target"
"network-online.target"
];
}; };
system.stateVersion = "24.05"; system.stateVersion = "24.05";
} }
+1
View File
@@ -217,5 +217,6 @@ in {
virtualisation = { virtualisation = {
docker.enable = true; docker.enable = true;
oci-containers.backend = "docker"; oci-containers.backend = "docker";
virtualbox.host.enable = true;
}; };
} }
@@ -1,9 +1,14 @@
{ pkgs, lib, ... }: { pkgs, lib, ... }:
let
inherit (lib.strings) hasSuffix;
system = pkgs.system; in
{ {
imports = [ imports = [
./ci-runner.nix ./ci-runner.nix
]; ]
++ (if (lib.strings.hasSuffix "darwin" "nope") then [./darwin] else [])
++ (if (lib.strings.hasSuffix "linux" "linux") then [./linux] else []);
# Enable flakes # Enable flakes
nix = { nix = {