aboutsummaryrefslogtreecommitdiff
path: root/share/system/common.nix
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 /share/system/common.nix
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.
Diffstat (limited to 'share/system/common.nix')
-rw-r--r--share/system/common.nix21
1 files changed, 21 insertions, 0 deletions
diff --git a/share/system/common.nix b/share/system/common.nix
new file mode 100644
index 0000000..909b801
--- /dev/null
+++ b/share/system/common.nix
@@ -0,0 +1,21 @@
+# Common system settings shared across every machine
+# Used mostly for adding substituters and such
+{ inputs, ... }: {
+ nix.settings = {
+ experimental-features = [ "nix-command" "flakes" ];
+ auto-optimise-store = true;
+
+ extra-substituters = [
+ "https://hyprland.cachix.org"
+ "https://nix-community.cachix.org"
+ ];
+ extra-trusted-public-keys = [
+ "hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="
+ "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
+ ];
+ };
+ nixpkgs.overlays = [
+ inputs.hyprland.overlays.default
+ inputs.emacs-overlay.overlays.default
+ ];
+}