Compare commits

...

4 commits

Author SHA1 Message Date
1ed9ee409b
use delta diff pager
Some checks failed
/ ci (push) Has been cancelled
2024-09-14 00:36:20 +01:00
cb51c7e09b
tmux patch for bar 2024-09-14 00:35:54 +01:00
188d9cb439
ddns 2024-09-13 23:47:34 +01:00
967f911b5a
justfile alias 2024-09-13 23:47:34 +01:00
11 changed files with 57 additions and 9 deletions

View file

@ -34,6 +34,6 @@
ghq = {root = "~/repos";}; ghq = {root = "~/repos";};
}; };
diff-so-fancy.enable = true; delta.enable = true;
}; };
} }

View file

@ -0,0 +1,24 @@
diff --git a/tmux-onedark-theme.tmux b/tmux-onedark-theme.tmux
index e440cc7..33ba373 100755
--- a/tmux-onedark-theme.tmux
+++ b/tmux-onedark-theme.tmux
@@ -75,14 +75,14 @@ set "status-fg" "$onedark_white"
set "@prefix_highlight_fg" "$onedark_black"
set "@prefix_highlight_bg" "$onedark_green"
set "@prefix_highlight_copy_mode_attr" "fg=$onedark_black,bg=$onedark_green"
-set "@prefix_highlight_output_prefix" "  "
+set "@prefix_highlight_output_prefix" " "
status_widgets=$(get "@onedark_widgets")
time_format=$(get "@onedark_time_format" "%R")
date_format=$(get "@onedark_date_format" "%d/%m/%Y")
-set "status-right" "#[fg=$onedark_white,bg=$onedark_black,nounderscore,noitalics]${time_format}  ${date_format} #[fg=$onedark_visual_grey,bg=$onedark_black]#[fg=$onedark_visual_grey,bg=$onedark_visual_grey]#[fg=$onedark_white, bg=$onedark_visual_grey]${status_widgets} #[fg=$onedark_green,bg=$onedark_visual_grey,nobold,nounderscore,noitalics]#[fg=$onedark_black,bg=$onedark_green,bold] #h #[fg=$onedark_yellow, bg=$onedark_green]#[fg=$onedark_red,bg=$onedark_yellow]"
-set "status-left" "#[fg=$onedark_black,bg=$onedark_green,bold] #S #{prefix_highlight}#[fg=$onedark_green,bg=$onedark_black,nobold,nounderscore,noitalics]"
+set "status-right" "#[fg=$onedark_white,bg=$onedark_black,nounderscore,noitalics]${time_format} ${date_format} #[fg=$onedark_visual_grey,bg=$onedark_black]#[fg=$onedark_visual_grey,bg=$onedark_visual_grey]#[fg=$onedark_white, bg=$onedark_visual_grey]${status_widgets} #[fg=$onedark_green,bg=$onedark_visual_grey,nobold,nounderscore,noitalics]#[fg=$onedark_black,bg=$onedark_green,bold] #h #[fg=$onedark_yellow, bg=$onedark_green]#[fg=$onedark_red,bg=$onedark_yellow]"
+set "status-left" "#[fg=$onedark_black,bg=$onedark_green,bold] #S #{prefix_highlight}#[fg=$onedark_green,bg=$onedark_black,nobold,nounderscore,noitalics]"
-set "window-status-format" "#[fg=$onedark_black,bg=$onedark_black,nobold,nounderscore,noitalics]#[fg=$onedark_white,bg=$onedark_black] #I  #W #[fg=$onedark_black,bg=$onedark_black,nobold,nounderscore,noitalics]"
-set "window-status-current-format" "#[fg=$onedark_black,bg=$onedark_visual_grey,nobold,nounderscore,noitalics]#[fg=$onedark_white,bg=$onedark_visual_grey,nobold] #I  #W #[fg=$onedark_visual_grey,bg=$onedark_black,nobold,nounderscore,noitalics]"
+set "window-status-format" "#[fg=$onedark_black,bg=$onedark_black,nobold,nounderscore,noitalics]#[fg=$onedark_white,bg=$onedark_black] #I #W #[fg=$onedark_black,bg=$onedark_black,nobold,nounderscore,noitalics]"
+set "window-status-current-format" "#[fg=$onedark_black,bg=$onedark_visual_grey,nobold,nounderscore,noitalics]#[fg=$onedark_white,bg=$onedark_visual_grey,nobold] #I #W #[fg=$onedark_visual_grey,bg=$onedark_black,nobold,nounderscore,noitalics]"

View file

@ -20,15 +20,15 @@ in {
sensible sensible
yank yank
{ {
plugin = onedark-theme; plugin = onedark-theme.overrideAttrs (_: {
patches = [./bar.patch];
});
extraConfig = "\n"; extraConfig = "\n";
} }
{ {
plugin = resurrect; plugin = resurrect;
extraConfig = '' extraConfig = ''
set -g @resurrect-strategy-vim 'session' set -g @resurrect-capture-pane-contents 'off'
set -g @resurrect-strategy-nvim 'session'
set -g @resurrect-capture-pane-contents 'on'
''; '';
} }
{ {
@ -62,8 +62,4 @@ in {
bind -r l select-pane -R bind -r l select-pane -R
''; '';
}; };
# home.packages = [
# pkgs.tmux-sessionizer-cl
# ];
} }

13
hosts/hermes/ddns.nix Normal file
View file

@ -0,0 +1,13 @@
{config, ...}: {
services.cloudflare-dyndns = {
enable = true;
ipv4 = true;
ipv6 = false;
proxied = false;
deleteMissing = false;
domains = [];
apiTokenFile = config.age.secrets.cloudflare-api.path;
};
# services.cloudflare-dyndns.domains = [];
age.secrets."cloudflare-api".file = ../../secrets/cloudflare-api.age;
}

View file

@ -2,6 +2,7 @@
imports = [ imports = [
./hardware-configuration.nix ./hardware-configuration.nix
./configuration.nix ./configuration.nix
./ddns.nix
./quassel.nix ./quassel.nix
./fail2ban.nix ./fail2ban.nix
./containers.nix ./containers.nix

View file

@ -6,6 +6,7 @@
domain = "git.cleslie.uk"; domain = "git.cleslie.uk";
in { in {
services = { services = {
cloudflare-dyndns.domains = [domain];
forgejo = { forgejo = {
enable = true; enable = true;
database.type = "postgres"; database.type = "postgres";

View file

@ -13,6 +13,7 @@ in {
ip_prefixes = "100.64.0.0/10"; ip_prefixes = "100.64.0.0/10";
}; };
}; };
cloudflare-dyndns.domains = [domain];
caddy.virtualHosts.${domain}.extraConfig = '' caddy.virtualHosts.${domain}.extraConfig = ''
reverse_proxy localhost:${toString config.services.headscale.port} reverse_proxy localhost:${toString config.services.headscale.port}
''; '';

View file

@ -85,6 +85,8 @@ in {
}; };
}; };
cloudflare-dyndns.domains = ["media.cleslie.uk" "watch.cleslie.uk" "request.cleslie.uk"];
jellyfin = { jellyfin = {
enable = true; enable = true;
package = pkgs.jellyfin; package = pkgs.jellyfin;

View file

@ -5,6 +5,7 @@ alias r := rebuild
alias v := vim alias v := vim
alias u := update alias u := update
alias c := cache alias c := cache
alias d := deploy
rebuild: rebuild:
sudo nixos-rebuild switch --flake .# sudo nixos-rebuild switch --flake .#

View file

@ -0,0 +1,8 @@
age-encryption.org/v1
-> ssh-ed25519 /RyXeg p2ROUhWiDQDOjALQnhhf566js8ivYTsgwNfCaaoe6yQ
UnCc2/4lb+PxnrKdAPVqwAyXavFGr8M3NV3+fSSdAU0
-> ssh-ed25519 aSaoJQ hHqpvUCaH5RLAQwTdH1llfF/0aTraXtl25qFDaFhUwk
+4VMHc3PGR9HBlVTw4anbYORQPgFl24WGF5pwmt7w20
--- qa7ctM764SNg3u/ITk+6DRXbLqF1Lom1xgKysY9DrkE
ôZš¾;Qš
7î‡kÔ4%ú½#<08>ŸÞåpqÃÅâvìyú] ièeǺð]É©i¾Ó!4Ø=ÇsŒä‰<C3A4>JfÉpúH«sæò29½¥œs¯åF}µ‘˪—#ói8ù

View file

@ -10,4 +10,5 @@ in {
"mesh-conf-infra.age".publicKeys = keys.c ++ allSystems; "mesh-conf-infra.age".publicKeys = keys.c ++ allSystems;
"mesh-conf-cleslie.age".publicKeys = keys.c ++ allSystems; "mesh-conf-cleslie.age".publicKeys = keys.c ++ allSystems;
"forgejo-password.age".publicKeys = keys.c ++ [systems.hermes]; "forgejo-password.age".publicKeys = keys.c ++ [systems.hermes];
"cloudflare-api.age".publicKeys = keys.c ++ [systems.hermes];
} }