summaryrefslogtreecommitdiff
path: root/hostnix/mojo/modules/system.nix
blob: b34905f8f20bbd064f88206d6be598218c026a6a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{
  pkgs,
  pkgsUnstable,
  self,
  ...
}:
{
  nixpkgs.config.allowUnfree = true;

  homebrew = {
    enable = true;
    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;
}