From 6cd57704523f2970a7c00934d7b672593a009a52 Mon Sep 17 00:00:00 2001 From: Nathan Date: Fri, 16 Jan 2026 18:33:53 -0600 Subject: [PATCH] pihole and dots --- system/services/containers/pihole/default.nix | 25 +--- .../home-manager/dotfiles/hypr/hyprlock.conf | 8 +- .../dotfiles/wal/templates/ohmyposh.toml | 112 ++++++++++++++++++ 3 files changed, 123 insertions(+), 22 deletions(-) create mode 100644 system/users/nathan/home-manager/dotfiles/wal/templates/ohmyposh.toml diff --git a/system/services/containers/pihole/default.nix b/system/services/containers/pihole/default.nix index d39f6e4..aba6514 100644 --- a/system/services/containers/pihole/default.nix +++ b/system/services/containers/pihole/default.nix @@ -77,6 +77,7 @@ cnameRecords = [ "traefik.local,local.internal.esotericbytes.com" + "pihole.local,local.internal.esotericbytes.com" "hass.local,local.internal.esotericbytes.com" ]; }; @@ -85,7 +86,7 @@ }; }; - unbound = { + /*unbound = { enable = true; resolveLocalQueries = false; @@ -122,29 +123,15 @@ ]; }; - }; + };*/ }; - - users.users."root" = { - openssh.authorizedKeys.keys = [ - "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICe6Ito5m9c4Tij8zI74L8hnd/QRchEO/cc5CH94mjMC nathan@homebox" - ]; - }; - + networking = { - firewall.allowedTCPPorts = [ 22 5335 ]; + firewall.allowedTCPPorts = [ 5335 ]; firewall.allowedUDPPorts = [ 5335 ]; - #nameservers = [ "1.1.1.1" "1.0.0.1" ]; - }; - services.openssh = { - enable = true; - settings = { - PermitRootLogin = lib.mkForce "yes"; - PasswordAuthentication = false; - KbdInteractiveAuthentication = false; - }; + nameservers = [ "1.1.1.1" "1.0.0.1" ]; }; system.stateVersion = "25.05"; diff --git a/system/users/nathan/home-manager/dotfiles/hypr/hyprlock.conf b/system/users/nathan/home-manager/dotfiles/hypr/hyprlock.conf index 94b887e..990a883 100644 --- a/system/users/nathan/home-manager/dotfiles/hypr/hyprlock.conf +++ b/system/users/nathan/home-manager/dotfiles/hypr/hyprlock.conf @@ -11,6 +11,8 @@ $font = Monospace +source = ~/.cache/wal/colors-hypr.conf + general { hide_cursor = false } @@ -45,9 +47,9 @@ input-field { outline_thickness = 3 inner_color = rgba(0, 0, 0, 0.0) # no fill - outer_color = rgba(33ccffee) rgba(00ff99ee) 45deg - check_color = rgba(00ff99ee) rgba(ff6633ee) 120deg - fail_color = rgba(ff6633ee) rgba(ff0066ee) 40deg + outer_color = $color1 $color5 100deg + check_color = $color2 $color6 120deg + fail_color = $color3 $color7 40deg font_color = rgb(143, 143, 143) fade_on_empty = false diff --git a/system/users/nathan/home-manager/dotfiles/wal/templates/ohmyposh.toml b/system/users/nathan/home-manager/dotfiles/wal/templates/ohmyposh.toml new file mode 100644 index 0000000..6067123 --- /dev/null +++ b/system/users/nathan/home-manager/dotfiles/wal/templates/ohmyposh.toml @@ -0,0 +1,112 @@ +#:schema https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json + +version = 2 +final_space = true +console_title_template = '{{{{ .Shell }}}} in {{{{ .Folder }}}}' + +[[blocks]] + type = 'prompt' + alignment = 'left' + newline = true + + [[blocks.segments]] + type = 'os' + style = 'diamond' + trailing_diamond = '' + background = 'p:c1' + foreground = 'p:c12' + template = ' {{{{ .Icon }}}} ' + + [[blocks.segments]] + type = 'session' + style = 'diamond' + trailing_diamond = '' + background = 'p:c2' + foreground = 'p:c14' + template = '{{{{ .UserName }}}}@{{{{ .HostName }}}}' + + [[blocks.segments]] + type = 'path' + style = 'diamond' + trailing_diamond = '' + background = 'p:c4' + foreground = 'p:c13' + template = '{{{{ .Path }}}}' + + [blocks.segments.properties] + style = 'full' + +[[blocks]] + type = 'prompt' + overflow = 'hidden' + alignment = 'right' + + [[blocks.segments]] + type = 'executiontime' + style = 'diamond' + leading_diamond = '' + background = 'p:c4' + foreground = 'p:c13' + template = '{{{{ .FormattedMs }}}}' + + [[blocks.segments]] + type = 'time' + style = 'diamond' + leading_diamond = '' + background = 'p:c2' + foreground = 'p:c14' + + [[blocks.segments]] + type = 'shell' + style = 'diamond' + leading_diamond = '' + background = 'p:c1' + foreground = 'p:c12' + +[[blocks]] + type = 'prompt' + alignment = 'left' + newline = true + + [[blocks.segments]] + type = 'text' + style = 'plain' + background = 'transparent' + foreground_templates = [ + "{{{{ if gt .Code 0 }}}}p:c13{{{{end}}}}", + "{{{{ if eq .Code 0 }}}}p:c14{{{{end}}}}", + ] + template = "{{{{ if gt .Code 0 }}}}!❭ {{{{else}}}}❭ {{{{end}}}}" + +[transient_prompt] + foreground_templates = [ + "{{{{ if gt .Code 0 }}}}p:c13{{{{end}}}}", + "{{{{ if eq .Code 0 }}}}p:c14{{{{end}}}}", + ] + background = 'transparent' + template = "{{{{ if gt .Code 0 }}}}!❭ {{{{else}}}}❭ {{{{end}}}}" + +[secondary_prompt] + background = 'transparent' + forground = 'p:c14' + template = "❭❭ " + + +[palette] + +c0 = "{color0}" +c1 = "{color1}" +c2 = "{color2}" +c3 = "{color3}" +c4 = "{color4}" +c5 = "{color5}" +c6 = "{color6}" +c7 = "{color7}" +c8 = "{color8}" +c9 = "{color9}" +c10 = "{color10}" +c11 = "{color11}" +c12 = "{color12}" +c13 = "{color13}" +c14 = "{color14}" +c15 = "{color15}"