aboutsummaryrefslogtreecommitdiff
path: root/nix/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nix/default.nix')
-rw-r--r--nix/default.nix39
1 files changed, 39 insertions, 0 deletions
diff --git a/nix/default.nix b/nix/default.nix
new file mode 100644
index 0000000..8b46c58
--- /dev/null
+++ b/nix/default.nix
@@ -0,0 +1,39 @@
+{ inputs }:
+
+{
+ mkSystem =
+ { hostname
+ , system
+ }:
+ inputs.nixpkgs.lib.nixosSystem {
+ inherit system;
+ specialArgs = {
+ inherit inputs system hostname;
+ };
+ modules = [
+ ../modules
+ ../hosts/${hostname}
+ ./private-wireguard.nix
+ {
+ networking.hostName = hostname;
+ nixpkgs = {
+ config.allowUnfree = true;
+ overlays = [
+ inputs.emacs-overlay.overlay
+ inputs.nur.overlay
+ (final: prev: {
+ tools = {
+ gerrit-hook = import ../tools/gerrit-hook final;
+ };
+ })
+ ];
+ };
+ # Add each input as a registry
+ nix.registry = inputs.nixpkgs.lib.mapAttrs'
+ (n: v:
+ inputs.nixpkgs.lib.nameValuePair (n) ({ flake = v; }))
+ inputs;
+ }
+ ];
+ };
+}