Move modules to shared
This commit is contained in:
+1
-2
@@ -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
@@ -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;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -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
@@ -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;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -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";
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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 = {
|
||||||
Reference in New Issue
Block a user