aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiran Bastaja <miran.bastaja04@gmail.com>2023-12-06 13:40:54 +0100
committerMiran Bastaja <miran.bastaja04@gmail.com>2023-12-06 13:40:54 +0100
commita54dc4b767d675e171fcc0d20298295748e0ab18 (patch)
treec3f17fdb3dfaad8707de316fffac8ea6ec7bbe54
parent38150de017690445ad58ca1f1e069c9ac19935b7 (diff)
Move and rename nix-config module
The old location for it was wrong as the module does not define a nixos module but rather just sets some options in existing modules. A new name was chosen so it would be more abstract and thus cover more use cases.
-rw-r--r--flake.nix2
-rw-r--r--share/system/common.nix (renamed from share/nixos-modules/nix-config.nix)2
2 files changed, 3 insertions, 1 deletions
diff --git a/flake.nix b/flake.nix
index 04d38cd..941a67e 100644
--- a/flake.nix
+++ b/flake.nix
@@ -64,7 +64,7 @@
inputs.home-manager.nixosModules.home-manager
inputs.sops-nix.nixosModules.sops
inputs.disko.nixosModules.disko
- ./share/nixos-modules/nix-config.nix
+ ./share/system/common.nix
# This directory has to exist and have a `default.nix` in it, see
# `./hosts` directory for examples
diff --git a/share/nixos-modules/nix-config.nix b/share/system/common.nix
index 8000871..909b801 100644
--- a/share/nixos-modules/nix-config.nix
+++ b/share/system/common.nix
@@ -1,3 +1,5 @@
+# Common system settings shared across every machine
+# Used mostly for adding substituters and such
{ inputs, ... }: {
nix.settings = {
experimental-features = [ "nix-command" "flakes" ];