summaryrefslogtreecommitdiff
path: root/hostnix/mojo/modules/system.nix
diff options
context:
space:
mode:
Diffstat (limited to 'hostnix/mojo/modules/system.nix')
-rw-r--r--hostnix/mojo/modules/system.nix29
1 files changed, 29 insertions, 0 deletions
diff --git a/hostnix/mojo/modules/system.nix b/hostnix/mojo/modules/system.nix
new file mode 100644
index 0000000..2109311
--- /dev/null
+++ b/hostnix/mojo/modules/system.nix
@@ -0,0 +1,29 @@
+{
+ pkgs,
+ pkgsUnstable,
+ self,
+ ...
+}:
+{
+ nixpkgs.config.allowUnfree = true;
+
+ homebrew = {
+ enable = true;
+ # Enable after nix-darwin 25.11
+ # enableBashIntegration = true;
+ caskArgs.require_sha = true;
+ # Error: Refusing to uninstall /opt/homebrew/Cellar/brotli/1.2.0, [...snip...]
+ # because they are required by sunshine, which is currently installed.
+ # onActivation.cleanup = "uninstall";
+ };
+
+ system.primaryUser = "joe";
+
+ security.sudo.extraConfig = ''
+ Defaults!/run/current-system/sw/bin/darwin-rebuild timestamp_timeout=120
+ '';
+
+ # $ chsh -s /run/current-system/sw/bin/bash
+ environment.shells = [ pkgs.bashInteractive ];
+ programs.bash.completion.enable = true;
+}