From 723d7bd632f68b2f901d3d904ecafe079e5e5e8e Mon Sep 17 00:00:00 2001 From: Kyren223 Date: Wed, 1 Jan 2025 19:30:19 +0200 Subject: [PATCH] Updated the flake but the boot partition is too small to update so I will have to repartition or just revert for now --- .config/ohmyposh/tokyocat.omp.yml | 158 ++++++++++++-------------- .config/ohmyposh/tokyocat.omp.yml.bak | 94 +++++++++++++++ hosts/kyren-laptop/configuration.nix | 8 +- hosts/kyren-laptop/home.nix | 2 +- 4 files changed, 170 insertions(+), 92 deletions(-) create mode 100644 .config/ohmyposh/tokyocat.omp.yml.bak diff --git a/.config/ohmyposh/tokyocat.omp.yml b/.config/ohmyposh/tokyocat.omp.yml index 18dc84e..23ac0bf 100644 --- a/.config/ohmyposh/tokyocat.omp.yml +++ b/.config/ohmyposh/tokyocat.omp.yml @@ -1,94 +1,78 @@ # yaml-language-server: $schema=https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json -# Created by Kyren223 on GitHub https://github.com/Kyren223 -# File hosted on GitHub at https://github.com/Kyren223/dotfiles/blob/master/.config/ohmyposh/tokyocat.omp.yml - -version: 2 -final_space: true - -blocks: - - type: prompt - alignment: left - newline: true - segments: - - type: path - style: diamond - leading_diamond: "\ue0b6" - trailing_diamond: "\ue0b4" - template: "{{ .Path }}" - background: p:black - foreground: p:blue - properties: - style: full - - - type: git - style: diamond - trailing_diamond: "\ue0b4" - background: p:black - foreground: p:blue - template: " {{ .HEAD }}{{ if .Working.Changed }}  {{ .Working.String }}{{ end }}{{ if and (.Staging.Changed) (.Working.Changed) }} |{{ end }}{{ if .Staging.Changed }}  {{ .Staging.String }}{{ end }}{{ if and (or (.Working.Changed) (.Staging.Changed)) (or (gt .Ahead 0) (gt .Behind 0)) }} | {{ else }} {{ end }}{{ if gt .Behind 0 }}⇣{{ end }}{{ if gt .Ahead 0 }}⇡{{ end }}" - properties: - fetch_status: true - branch_icon: " " - commit_icon: "@" - - # - type: status - # style: diamond - # foreground: "p:white" - # background: "p:cyan" - # background_templates: - # - "{{ if .Error }}p:red2{{ end }}" - # trailing_diamond:  - # template: "  " - # properties: - # always_enabled: false - - - type: rprompt - overflow: hidden - segments: - - type: executiontime - style: plain - background: transparent - foreground: p:yellow - template: "{{ .FormattedMs }}" - properties: - threshold: 5000 - display_style: austin - - - type: prompt - alignment: left - newline: true - segments: - - type: text - style: powerline - powerline_symbol:  - background: transparent - foreground: p:magenta - foreground_templates: - - "{{ if gt .Code 0 }}p:red{{end}}" - - "{{ if eq .Code 0 }}p:magenta{{end}}" - template: "❯" - - -transient_prompt: - background: transparent - foreground: p:magenta - template: "❯ " - -secondary_prompt: - background: transparent - foreground: p:magenta - template: "❯❯ " palette: - blue: "blue" black: "#262B44" + blue: blue + cyan: "#00897b" + dark_blue: "#166e78" + dark_blue2: "#193549" + green: "#4caf50" + light_blue: "#40c4ff" magenta: "#F5C2E7" red: "#D81E5B" - green: "#4caf50" - yellow: "#ffeb3b" - dark_blue: "#166e78" - light_blue: "#40c4ff" - white: "#ffffff" - cyan: "#00897b" red2: "#e91e63" - dark_blue2: "#193549" + white: "#ffffff" + yellow: "#ffeb3b" +secondary_prompt: + template: "❯❯ " + foreground: p:magenta + background: transparent +transient_prompt: + template: "❯ " + foreground: p:magenta + background: transparent +blocks: +- type: prompt + alignment: left + segments: + - properties: + cache_duration: none + style: full + leading_diamond:  + trailing_diamond:  + template: "{{ .Path }}" + foreground: p:blue + background: p:black + type: path + style: diamond + - properties: + branch_icon: "\ue725 " + cache_duration: none + commit_icon: "@" + fetch_status: true + trailing_diamond:  + template: " {{ .HEAD }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if and (.Staging.Changed) (.Working.Changed) }} |{{ end }}{{ if .Staging.Changed }} \uf046 {{ .Staging.String }}{{ end }}{{ if and (or (.Working.Changed) (.Staging.Changed)) (or (gt .Ahead 0) (gt .Behind 0)) }} | {{ else }} {{ end }}{{ if gt .Behind 0 }}⇣{{ end }}{{ if gt .Ahead 0 }}⇡{{ end }}" + foreground: p:blue + background: p:black + type: git + style: diamond + newline: true +- type: rprompt + overflow: hidden + segments: + - properties: + cache_duration: none + display_style: austin + threshold: 5000 + template: "{{ .FormattedMs }}" + foreground: p:yellow + background: transparent + type: executiontime + style: plain +- type: prompt + alignment: left + segments: + - properties: + cache_duration: none + template: ❯ + foreground: p:magenta + powerline_symbol:  + background: transparent + type: text + style: powerline + foreground_templates: + - "{{ if gt .Code 0 }}p:red{{end}}" + - "{{ if eq .Code 0 }}p:magenta{{end}}" + newline: true +version: 3 +final_space: true diff --git a/.config/ohmyposh/tokyocat.omp.yml.bak b/.config/ohmyposh/tokyocat.omp.yml.bak new file mode 100644 index 0000000..18dc84e --- /dev/null +++ b/.config/ohmyposh/tokyocat.omp.yml.bak @@ -0,0 +1,94 @@ +# yaml-language-server: $schema=https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json +# Created by Kyren223 on GitHub https://github.com/Kyren223 +# File hosted on GitHub at https://github.com/Kyren223/dotfiles/blob/master/.config/ohmyposh/tokyocat.omp.yml + +version: 2 +final_space: true + +blocks: + - type: prompt + alignment: left + newline: true + segments: + - type: path + style: diamond + leading_diamond: "\ue0b6" + trailing_diamond: "\ue0b4" + template: "{{ .Path }}" + background: p:black + foreground: p:blue + properties: + style: full + + - type: git + style: diamond + trailing_diamond: "\ue0b4" + background: p:black + foreground: p:blue + template: " {{ .HEAD }}{{ if .Working.Changed }}  {{ .Working.String }}{{ end }}{{ if and (.Staging.Changed) (.Working.Changed) }} |{{ end }}{{ if .Staging.Changed }}  {{ .Staging.String }}{{ end }}{{ if and (or (.Working.Changed) (.Staging.Changed)) (or (gt .Ahead 0) (gt .Behind 0)) }} | {{ else }} {{ end }}{{ if gt .Behind 0 }}⇣{{ end }}{{ if gt .Ahead 0 }}⇡{{ end }}" + properties: + fetch_status: true + branch_icon: " " + commit_icon: "@" + + # - type: status + # style: diamond + # foreground: "p:white" + # background: "p:cyan" + # background_templates: + # - "{{ if .Error }}p:red2{{ end }}" + # trailing_diamond:  + # template: "  " + # properties: + # always_enabled: false + + - type: rprompt + overflow: hidden + segments: + - type: executiontime + style: plain + background: transparent + foreground: p:yellow + template: "{{ .FormattedMs }}" + properties: + threshold: 5000 + display_style: austin + + - type: prompt + alignment: left + newline: true + segments: + - type: text + style: powerline + powerline_symbol:  + background: transparent + foreground: p:magenta + foreground_templates: + - "{{ if gt .Code 0 }}p:red{{end}}" + - "{{ if eq .Code 0 }}p:magenta{{end}}" + template: "❯" + + +transient_prompt: + background: transparent + foreground: p:magenta + template: "❯ " + +secondary_prompt: + background: transparent + foreground: p:magenta + template: "❯❯ " + +palette: + blue: "blue" + black: "#262B44" + magenta: "#F5C2E7" + red: "#D81E5B" + green: "#4caf50" + yellow: "#ffeb3b" + dark_blue: "#166e78" + light_blue: "#40c4ff" + white: "#ffffff" + cyan: "#00897b" + red2: "#e91e63" + dark_blue2: "#193549" diff --git a/hosts/kyren-laptop/configuration.nix b/hosts/kyren-laptop/configuration.nix index 875ceac..003f9a8 100644 --- a/hosts/kyren-laptop/configuration.nix +++ b/hosts/kyren-laptop/configuration.nix @@ -181,10 +181,10 @@ }; # Enable KVM/QEMU virtualization - programs.virt-manager.enable = true; - users.groups.libvirtd.members = ["kyren"]; - virtualisation.libvirtd.enable = true; - virtualisation.spiceUSBRedirection.enable = true; + # programs.virt-manager.enable = true; + # users.groups.libvirtd.members = ["kyren"]; + # virtualisation.libvirtd.enable = true; + # virtualisation.spiceUSBRedirection.enable = true; services.syncthing.enable = true; services.syncthing = { diff --git a/hosts/kyren-laptop/home.nix b/hosts/kyren-laptop/home.nix index 6d54e79..c8fdf0d 100644 --- a/hosts/kyren-laptop/home.nix +++ b/hosts/kyren-laptop/home.nix @@ -55,7 +55,7 @@ piper goose sqlc - jetbrains.idea-community + jetbrains.idea-community-bin jdk maven gradle