-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdefault.nix
More file actions
113 lines (106 loc) · 2.35 KB
/
Copy pathdefault.nix
File metadata and controls
113 lines (106 loc) · 2.35 KB
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
{
hostname,
pkgs,
username,
...
}:
{
system.primaryUser = username;
environment = {
shells = with pkgs; [
bash
zsh
];
pathsToLink = [
"/Applications"
"/share/zsh"
];
systemPackages = with pkgs; [
bandwhich
coreutils
hugo
mas
nmap
openjdk
];
};
homebrew = {
enable = true;
onActivation = {
autoUpdate = false; # was true but https://github.com/zhaofengli/nix-homebrew/issues/131
cleanup = "zap";
upgrade = true;
};
taps = [
"homebrew-ffmpeg/ffmpeg"
];
brews = [
# "fastfetch"
{
name = "homebrew-ffmpeg/ffmpeg/ffmpeg";
args = [ "with-srt" ];
}
#"firefox-profile-switcher-connector" # having had this on seems to mean I need to toggle browser.profiles.enabled to true in about:config for the new built in profile
"telnet"
];
casks = [
"amethyst"
"appcleaner"
"balenaetcher"
"bartender"
"displaylink"
"dnclient"
"font-hack-nerd-font"
"font-inconsolata-g-for-powerline"
"font-source-code-pro-for-powerline"
"imageoptim"
"itermbrowserplugin"
"iterm2"
#"makemkv" See https://github.com/Homebrew/homebrew-cask/issues/269960
"raycast"
"sonos"
"todoist-app"
];
masApps = {
"BetterSnapTool" = 417375580;
"Brother iPrint&Scan" = 1193539993;
};
};
networking.hostName = "${hostname}";
nix = {
settings = {
bash-prompt-prefix = "(nix:$name)\040";
build-users-group = "nixbld";
download-buffer-size = 524288000;
experimental-features = [
"auto-allocate-uids"
"flakes"
"nix-command"
];
trusted-users = [
"@admin"
"${username}"
];
};
extraOptions = ''
# Generated by https://github.com/DeterminateSystems/nix-installer, version 0.11.0.
extra-nix-path = nixpkgs=flake:nixpkgs
# Uncoment below after validation bug is fixed
#upgrade-nix-store-path-url = https://install.determinate.systems/nix-upgrade/stable/universal
'';
};
nix-homebrew = {
trust = {
taps = [
"homebrew-ffmpeg/ffmpeg"
];
};
};
programs = {
zsh.enable = true;
};
users.users.${username} = {
home = "/Users/${username}";
shell = pkgs.zsh;
};
}