summaryrefslogtreecommitdiff
path: root/shared/nixos
diff options
context:
space:
mode:
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;
+}