alpha
Login
or
Join now
hermes.pds.lassul.us
/
superconfig
forked from
lass.pds.lassul.us/superconfig
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
This repository has no description
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
add barnacle darwin config
author
lassulus
date
2 years ago
(Jun 22, 2024, 8:03 PM CEST)
commit
69052daf
69052daf5bcad6fbdfe3b883f737effa1aba6e7b
parent
99e495b1
99e495b1d4fb128bacfb10832dd7ae147a76d4cd
+110
3 changed files
Expand all
Collapse all
Unified
Split
darwin
barnacle
config.nix
flake.lock
flake.nix
+21
flake.lock
View file
Reviewed
···
106
106
"type": "github"
107
107
}
108
108
},
109
109
+
"nix-darwin": {
110
110
+
"inputs": {
111
111
+
"nixpkgs": [
112
112
+
"nixpkgs"
113
113
+
]
114
114
+
},
115
115
+
"locked": {
116
116
+
"lastModified": 1718662658,
117
117
+
"narHash": "sha256-AKG7BsqtVWDlefgzyKz7vjaKTLi4+bmTSBhowbQoZtM=",
118
118
+
"owner": "LnL7",
119
119
+
"repo": "nix-darwin",
120
120
+
"rev": "29b3096a6e283d7e6779187244cb2a3942239fdf",
121
121
+
"type": "github"
122
122
+
},
123
123
+
"original": {
124
124
+
"owner": "LnL7",
125
125
+
"repo": "nix-darwin",
126
126
+
"type": "github"
127
127
+
}
128
128
+
},
109
129
"nix-writers": {
110
130
"flake": false,
111
131
"locked": {
···
247
267
"disko": "disko",
248
268
"flake-parts": "flake-parts",
249
269
"nether": "nether",
270
270
+
"nix-darwin": "nix-darwin",
250
271
"nixos-hardware": "nixos-hardware",
251
272
"nixpkgs": "nixpkgs",
252
273
"spora": "spora",
+6
flake.nix
View file
Reviewed
···
36
36
# spora.url = "git+file:/home/lass/src/spora";
37
37
spora.url = "github:krebs/spora";
38
38
spora.inputs.nixpkgs.follows = "nixpkgs";
39
39
+
40
40
+
nix-darwin.url = "github:LnL7/nix-darwin";
41
41
+
nix-darwin.inputs.nixpkgs.follows = "nixpkgs";
39
42
};
40
43
41
44
outputs = inputs@{ self, flake-parts, nixpkgs, clan-core, ... }:
···
83
86
clan-core.packages.${system}.clan-cli
84
87
];
85
88
};
89
89
+
};
90
90
+
flake.darwinConfigurations.barnacle = inputs.nix-darwin.lib.darwinSystem {
91
91
+
modules = [ ./darwin/barnacle/config.nix ];
86
92
};
87
93
};
88
94
}
+83
darwin/barnacle/config.nix
View file
Reviewed
···
1
1
+
{ pkgs, ... }:
2
2
+
3
3
+
{
4
4
+
imports = [
5
5
+
# ./rosetta.nix
6
6
+
];
7
7
+
8
8
+
nixpkgs.hostPlatform = "aarch64-darwin";
9
9
+
environment.systemPackages = [
10
10
+
pkgs.neovim
11
11
+
pkgs.lazygit
12
12
+
pkgs.sshuttle
13
13
+
];
14
14
+
15
15
+
# Use a custom configuration.nix location.
16
16
+
# $ darwin-rebuild switch -I darwin-config=$HOME/.config/nixpkgs/darwin/configuration.nix
17
17
+
# environment.darwinConfig = "$HOME/.config/nixpkgs/darwin/configuration.nix";
18
18
+
19
19
+
# Auto upgrade nix package and the daemon service.
20
20
+
services.nix-daemon.enable = true;
21
21
+
nix = {
22
22
+
package = pkgs.nix;
23
23
+
settings = {
24
24
+
extra-experimental-features = [ "nix-command" "flakes" ];
25
25
+
};
26
26
+
};
27
27
+
28
28
+
homebrew = {
29
29
+
enable = true;
30
30
+
casks = [
31
31
+
"firefox"
32
32
+
"element"
33
33
+
"gpg-suite"
34
34
+
"tunnelblick"
35
35
+
"microsoft-remote-desktop"
36
36
+
];
37
37
+
};
38
38
+
39
39
+
system.defaults = {
40
40
+
# minimal dock
41
41
+
dock = {
42
42
+
autohide = true;
43
43
+
orientation = "left";
44
44
+
show-process-indicators = false;
45
45
+
show-recents = false;
46
46
+
static-only = true;
47
47
+
};
48
48
+
# a finder that tells me what I want to know and lets me work
49
49
+
finder = {
50
50
+
AppleShowAllExtensions = true;
51
51
+
ShowPathbar = true;
52
52
+
FXEnableExtensionChangeWarning = false;
53
53
+
};
54
54
+
# Tab between form controls and F-row that behaves as F1-F12
55
55
+
NSGlobalDomain = {
56
56
+
AppleKeyboardUIMode = 3;
57
57
+
"com.apple.keyboard.fnState" = true;
58
58
+
};
59
59
+
};
60
60
+
61
61
+
# nix.linux-builder.enable = true;
62
62
+
63
63
+
# Create /etc/zshrc that loads the nix-darwin environment.
64
64
+
programs.zsh.enable = true; # default shell on catalina
65
65
+
# programs.fish.enable = true;
66
66
+
67
67
+
programs.direnv.enable = true;
68
68
+
programs.nix-index.enable = true;
69
69
+
programs.gnupg.agent = {
70
70
+
enable = true;
71
71
+
enableSSHSupport = true;
72
72
+
};
73
73
+
74
74
+
# Used for backwards compatibility, please read the changelog before changing.
75
75
+
# $ darwin-rebuild changelog
76
76
+
system.stateVersion = 4;
77
77
+
78
78
+
# enable ssh in the macos system settings:
79
79
+
# apple -> system settings -> general -> sharing -> remote login
80
80
+
users.users.lassulus.openssh.authorizedKeys.keys = [
81
81
+
"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDIb3uuMqE/xSJ7WL/XpJ6QOj4aSmh0Ga+GtmJl3CDvljGuIeGCKh7YAoqZAi051k5j6ZWowDrcWYHIOU+h0eZCesgCf+CvunlXeUz6XShVMjyZo87f2JPs2Hpb+u/ieLx4wGQvo/Zw89pOly/vqpaX9ZwyIR+U81IAVrHIhqmrTitp+2FwggtaY4FtD6WIyf1hPtrrDecX8iDhnHHuGhATr8etMLwdwQ2kIBx5BBgCoiuW7wXnLUBBVYeO3II957XP/yU82c+DjSVJtejODmRAM/3rk+B7pdF5ShRVVFyB6JJR+Qd1g8iSH+2QXLUy3NM2LN5u5p2oTjUOzoEPWZo7lykZzmIWd/5hjTW9YiHC+A8xsCxQqs87D9HK9hLA6udZ6CGkq4hG/6wFwNjSMnv30IcHZzx6IBihNGbrisrJhLxEiKWpMKYgeemhIirefXA6UxVfiwHg3gJ8BlEBsj0tl/HVARifR2y336YINEn8AsHGhwrPTBFOnBTmfA/VnP1NlWHzXCfVimP6YVvdoGCCnAwvFuJ+ZuxmZ3UzBb2TenZZOzwzV0sUzZk0D1CaSBFJUU3oZNOkDIM6z5lIZgzsyKwb38S8Vs3HYE+Dqpkfsl4yeU5ldc6DwrlVwuSIa4vVus4eWD3gDGFrx98yaqOx17pc4CC9KXk/2TjtJY5xmQ== lass@yubikey"
82
82
+
];
83
83
+
}