summaryrefslogtreecommitdiff
path: root/shared/nixos
diff options
context:
space:
mode:
authorLinnnus <[email protected]>2025-01-18 13:14:31 +0100
committerLinnnus <[email protected]>2025-01-18 13:14:31 +0100
commitf5fc33abb93e058b943e5ef0dc8c8a3c02255804 (patch)
tree4457684b5ea69d493ea4af5db59195d637e62c9d /shared/nixos
parente92e5baa7b23c696241bc0d7cfa6d952ca8578d4 (diff)
Move NixOS-specific options from shared/{nixos-and-darwin => nixos}
Diffstat (limited to 'shared/nixos')
-rw-r--r--shared/nixos/common-nix-settings/default.nix10
-rw-r--r--shared/nixos/common-shell-settings/default.nix14
2 files changed, 24 insertions, 0 deletions
diff --git a/shared/nixos/common-nix-settings/default.nix b/shared/nixos/common-nix-settings/default.nix
new file mode 100644
index 0000000..a5e4fda
--- /dev/null
+++ b/shared/nixos/common-nix-settings/default.nix
@@ -0,0 +1,10 @@
+# This module sets common settings related to Nix. Most of the logic is shared
+# between NixOS and Darwin, and is found in `shared/nixos-and-darwin/common-nix-options/`.
+{
+ imports = [
+ ../../nixos-and-darwin/common-nix-settings
+ ];
+
+ # There is not nix-darwin equivalent to this NixOS option.
+ nix.enable = true;
+}
diff --git a/shared/nixos/common-shell-settings/default.nix b/shared/nixos/common-shell-settings/default.nix
new file mode 100644
index 0000000..ce3b52e
--- /dev/null
+++ b/shared/nixos/common-shell-settings/default.nix
@@ -0,0 +1,14 @@
+# This module sets options to ensure a consistent Baseline Shell Experince™
+# across the entire fleet.
+#
+# Most of the heavy lifting is done in `shared/nixos-and-darwin/common-shell-settings`.
+# This module is limited to NixOS-specific settings.
+{pkgs, ...}: {
+ imports = [
+ ../../nixos-and-darwin/common-shell-settings
+ ];
+
+ # There is not nix-darwin equivalent to this NixOS option.
+ # The default shell on MacOS is already ZSH.
+ users.defaultUserShell = pkgs.zsh;
+}