blob: 5326be737cf094ee2466819bc5cd4a2327d37939 (
plain) (
blame)
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
114
115
116
|
{
config,
pkgs,
inputs,
nvim,
username,
...
}: {
imports = [
./../../hjem-darwin.nix
];
networking = {
computerName = "bear";
hostName = "bear";
localHostName = "bear";
};
# Primary user for user-specific settings (dock, etc.)
system.primaryUser = username;
# List packages installed in system profile. To search by name, run:
# $ nix-env -qaP | grep wget
environment.systemPackages = with pkgs; [
mpv
];
programs.ssh = {
knownHosts = {
homelab = {
extraHostNames = ["192.168.1.120"];
publicKeyFile = ./../../pubkeys/homelab_ssh.pub;
};
desktop = {
extraHostNames = ["192.168.1.122"];
publicKeyFile = ./../../pubkeys/desktop_ssh.pub;
};
vps = {
extraHostNames = ["170.205.37.7"];
publicKeyFile = ./../../pubkeys/vps_ssh.pub;
};
github = {
extraHostNames = ["github.com"];
publicKeyFile = ./../../pubkeys/github_ssh.pub;
};
};
extraConfig = ''
Host git-vps
HostName git.skullheadx.com
Port 2222
User git
Host git.skullheadx.com
HostName localhost
Port 2223
User git
ProxyJump git-vps
Host homelab
HostName 192.168.1.120
Port 22
User andrew
Host vps
Hostname 170.205.37.7
Port 2222
User andrew
Host desktop
HostName 192.168.1.122
Port 22
User andrew
'';
};
programs.gnupg = {
agent = {
enable = true;
enableSSHSupport = true;
# enableBrowserSocket = true;
# settings = {
# default-cache-ttl = 86400;
# max-cache-ttl = 604800;
# };
};
};
homebrew = {
enable = true;
user = username;
taps = [
];
brews = [
];
casks = [
"keepassxc"
"protonvpn"
"selfcontrol"
"kdenlive"
"audacity"
"steam"
];
};
# Dock configuration
system.defaults.dock = {
persistent-apps = [
"/System/Applications/Reminders.app"
"/System/Applications/Calendar.app"
"/System/Applications/Music.app"
"/System/Applications/Messages.app"
"/Applications/KeePassXC.app"
"/Applications/Ghostty.app"
# "/Applications/Nix Apps/Brave Browser.app"
"/Applications/Nix Apps/LibreWolf.app"
# "/Applications/Nix Apps/UTM.app"
"/System/Applications/System Settings.app"
];
};
}
|