Skip to content

Commit b555af0

Browse files
authored
Merge pull request #20 from vancycles-knak/main
update
2 parents ad1dabd + ff18f7e commit b555af0

File tree

7 files changed

+55
-41
lines changed

7 files changed

+55
-41
lines changed

.config/spacemacs/.spacemacs

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -881,18 +881,14 @@ _p_rev _u_pper _=_: upper/lower _r_esolve
881881
("@emergency" . ?e)
882882
(:endgroup . nil)
883883

884-
;; Code TODOs tags
885-
("backend" . ?k)
886-
("frontend" . ?f)
887-
("devops" . ?d)
888-
889884
;; tasks TODOs
890885
(:startgroup . nil)
891886
("homelab" . ?h)
892887
("3d_printer" . ?3)
893888
("maintenance" . ?m)
894889
("planning" . ?p)
895890
("workout" . ?w)
891+
("linux" . ?l)
896892
(:endgroup . nil)
897893

898894
;; chinese tags
@@ -911,6 +907,7 @@ _p_rev _u_pper _=_: upper/lower _r_esolve
911907
("@spike" . (:foreground "#cba6f7" :background "#313244" :weight bold)) ; Mauve on surface0
912908
("@emergency" . (:foreground "#fab387" :background "#45475a" :weight bold :box t)) ; Peach on surface1 with box
913909
("homelab" . (:foreground "#89b4fa" :weight bold)) ; Blue
910+
("linux" . (:foreground "#89b4fa" :weight bold)) ; Blue
914911
("3d_printer" . (:foreground "#a6e3a1" :weight bold)) ; Green
915912
("maintenance" . (:foreground "#f9e2af" :weight bold)) ; Yellow
916913
("planning" . (:foreground "#f38ba8" :weight bold)) ; Red
@@ -945,24 +942,28 @@ _p_rev _u_pper _=_: upper/lower _r_esolve
945942
(setq org-capture-templates
946943
'(
947944
("j" "Work Log Entry"
948-
entry (file+datetree "~/Documents/zettelkasten/org-roam/org/work/work-log.org")
945+
entry (file+datetree "~/Documents/zettelkasten/org/work/work-log.org")
949946
"* %^{Task} \n:PROPERTIES:\n:END:\n"
950947
:empty-lines 0)
951948
("c" "Code To-Do"
952-
entry (file+headline "~/Documents/zettelkasten/org-roam/org/work/todo.org" "Code Related Tasks")
949+
entry (file+headline "~/Documents/zettelkasten/org/work/todo.org" "Code Related Tasks")
953950
"* TODO [#C] %?\n:PROPERTIES:\n:Effort: $^{Effort}\n:Weight: $^{Weight}\n:END:\nDEADLINE: %^T\n:Created: %T\n%i\n%a\nShortcut Ticket: \nProposed Solution: \n"
954951
:empty-lines 0)
955952
("g" "General To-Do"
956-
entry (file+headline "~/Documents/zettelkasten/org-roam/org/home/todo.org" "General TODOS")
953+
entry (file+headline "~/Documents/zettelkasten/org/home/todo.org" "General TODOS")
957954
"* TODO [#E] %?\n:Created: %T\n "
958955
:empty-lines 0)
959956
("l" "Learning note"
960-
entry (file+headline "~/Documents/zettelkasten/org-roam/org/home/learning.org" "Learning Notes")
957+
entry (file+headline "~/Documents/zettelkasten/org/home/learning.org" "Learning Notes")
961958
"* %^{Subject} \n:PROPERTIES:\n:END:\n** %?"
962959
:empty-lines 0)
960+
("b" "Book note"
961+
entry (file+headline "~/Documents/zettelkasten/org/home/books.org" "Book Notes")
962+
"* %^{Subject}\n:PROPERTIES:\n:Title: %^{Title}\n:Author: %^{Author}\n:END:\n** Notes\n%?"
963+
:empty-lines 0)
963964
("m" "Meeting"
964-
entry (file+datetree "~/Documents/zettelkasten/org-roam/org/work/meetings.org")
965-
"* %? :meeting:%^g \n:Created: %T\n** Attendees\n*** \n** Notes\n** Action Items\n*** TODO [#A] "
965+
entry (file+datetree "~/Documents/zettelkasten/org/work/meetings.org")
966+
"* %^{meeting} :meeting:%^g\n:PROPERTIES:\n:Created: %T\n:END:\n** Attendees\n*** \n** Notes\n** Action Items\n*** TODO [#A] "
966967
:tree-type week
967968
:clock-in t
968969
:clock-resume t

nix-darwin/flake.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@
123123
config = {
124124
allowUnfree = true;
125125
permittedInsecurePackages = [
126-
"electron-32.3.3"
126+
"electron-35.7.1"
127127
"beekeeper-studio-5.2.12"
128128
];
129129
};

nix-darwin/home-modules/languages/nix.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@
77
{
88

99
options = {
10-
nix.lsp.enable = lib.mkOption {
10+
languages.nix.lsp.enable = lib.mkOption {
1111
type = lib.types.bool;
1212
description = "Enables nix lsp";
1313
default = true;
1414
};
1515
};
16-
config = lib.mkIf config.nix.lsp.enable {
16+
config = lib.mkIf config.languages.nix.lsp.enable {
1717
home.packages = with pkgs; [
1818
nixfmt-rfc-style
1919
nixd # https://emacs-lsp.github.io/lsp-mode/page/lsp-nix-nixd/

nix-darwin/home-modules/programs/zsh.nix

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,13 @@
3030
"..." = "cd ../..";
3131
"...." = "cd ../../..";
3232
};
33+
shellGlobalAliases = {
34+
docker-crmAll = "docker rm -f (docker ps -aq)";
35+
docker-irmAll = "docker rmi -f (docker images -aq)";
36+
docker-vrmAll = "docker volume prune";
37+
docker-prmAll = "docker builder prune -af";
38+
docker-clean = "docker system prune -af"; # remove all containers, images, volumes, and networks without destroying running containers/images
39+
};
3340
};
3441
};
3542
}

nix-darwin/users/henri.vandersleyen/configuration.nix

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
pkgs,
3-
username,
3+
meta,
44
inputs,
55
...
66
}:
@@ -28,6 +28,7 @@
2828
};
2929
nixPath = [ "nixpkgs=${inputs.nixpkgs}" ]; # for nix.nix
3030
};
31+
3132
nixpkgs = {
3233
hostPlatform = "aarch64-darwin";
3334
config.allowUnfree = true;
@@ -38,8 +39,8 @@
3839
# system.configurationRevision = self.rev or self.dirtyRev or null;
3940
system.stateVersion = 5;
4041

41-
users.users.${username} = {
42-
home = "/Users/${username}";
42+
users.users.${meta.username} = {
43+
home = "/Users/${meta.username}";
4344
shell = pkgs.nushell;
4445
};
4546
home-manager.backupFileExtension = "backup";
@@ -53,7 +54,7 @@
5354
];
5455
variables = {
5556
# XDG_CONFIG_HOME = "/Users/henri.vandersleyen"; # issue with nushell
56-
SOPS_AGE_KEY_FILE = "/Users/${username}/.config/sops/age/keys.txt";
57+
SOPS_AGE_KEY_FILE = "/Users/${meta.username}/.config/sops/age/keys.txt";
5758
};
5859
};
5960

@@ -62,7 +63,7 @@
6263
'';
6364

6465
# Homebrew needs to be installed on its own!
65-
system.primaryUser = username;
66+
system.primaryUser = meta.username;
6667
homebrew = {
6768
enable = true;
6869
casks = [

nix-darwin/users/henri.vandersleyen/home.nix

Lines changed: 25 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
{
55
config,
6-
username,
6+
meta,
77
...
88
}:
99

@@ -55,33 +55,38 @@
5555
# wm
5656
wm.aerospace = {
5757
enable = false;
58-
configPath = Users/${username}/Documents/dotfiles/.config/aerospace;
58+
configPath = Users/${meta.username}/Documents/dotfiles/.config/aerospace;
5959
};
6060

6161
# languages
62-
python.lsp.enable = true;
63-
jsts.lsp.enable = true;
62+
languages = {
63+
python.lsp.enable = true;
64+
jsts.lsp.enable = true;
65+
};
6466

6567
# programs
66-
codium.enable = true;
67-
arc-browser.enable = true;
68-
fish.enable = true;
69-
zsh.enable = true;
70-
nh.flakeLocation = "/Users/${username}/Documents/dotFiles/nix-darwin";
71-
keychain.enable = true;
72-
keychain.keys = "/home/${username}/.ssh/knak";
73-
74-
git = {
75-
# userEmail = config.sops.secrets."knak/email".path;
76-
userEmail = "henri.vandersleyen@knak.com";
77-
# userName = config.sops.secrets."knak/git/userName".path;
78-
userName = "vancycles-knak";
79-
signingKey = config.sops.secrets."knak/git/keyName".path;
68+
program = {
69+
arc-browser.enable = true;
70+
codium.enable = false;
71+
fish.enable = true;
72+
zsh.enable = true;
73+
nh.flakeLocation = "/Users/${meta.username}/Documents/dotFiles/nix-darwin";
74+
keychain = {
75+
enable = true;
76+
keys = [ "/home/${meta.username}/.ssh/knak" ];
77+
};
78+
git = {
79+
# userEmail = config.sops.secrets."knak/email".path;
80+
userEmail = "henri.vandersleyen@knak.com";
81+
# userName = config.sops.secrets."knak/git/userName".path;
82+
userName = "vancycles-knak";
83+
signingKey = config.sops.secrets."knak/git/keyName".path;
84+
};
8085
};
8186

8287
home = {
83-
username = username;
84-
homeDirectory = "/Users/${username}";
88+
username = meta.username;
89+
homeDirectory = "/Users/${meta.username}";
8590
stateVersion = "23.05"; # Please read the comment before changing.
8691

8792
# Makes sense for user specific applications that shouldn't be available system-wide

nix-darwin/users/henri.vandersleyen/sops.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
inputs,
3-
username,
3+
meta,
44
config,
55
...
66
}:
@@ -12,7 +12,7 @@
1212
defaultSopsFile = ./secrets/secrets.yaml;
1313
defaultSopsFormat = "yaml";
1414

15-
age.keyFile = "/Users/${username}/.config/sops/age/keys.txt";
15+
age.keyFile = "/Users/${meta.username}/.config/sops/age/keys.txt";
1616
secrets = {
1717
"knak/email" = {
1818
# owner = username;

0 commit comments

Comments
 (0)