diff options
Diffstat (limited to 'home/programs')
| -rw-r--r-- | home/programs/alacritty/catppuccin-latte.toml | 65 | ||||
| -rw-r--r-- | home/programs/alacritty/catppuccin-mocha.toml | 65 | ||||
| -rw-r--r-- | home/programs/alacritty/default.nix | 57 | ||||
| -rw-r--r-- | home/programs/bat.nix | 10 | ||||
| -rw-r--r-- | home/programs/direnv.nix | 13 | ||||
| -rw-r--r-- | home/programs/eza.nix | 22 | ||||
| -rw-r--r-- | home/programs/fd.nix | 12 | ||||
| -rw-r--r-- | home/programs/firefox/extensions.nix | 1 | ||||
| -rw-r--r-- | home/programs/fish.nix | 24 | ||||
| -rw-r--r-- | home/programs/gh.nix | 15 | ||||
| -rw-r--r-- | home/programs/git.nix | 90 | ||||
| -rw-r--r-- | home/programs/go.nix | 24 | ||||
| -rw-r--r-- | home/programs/k9s.nix | 59 | ||||
| -rw-r--r-- | home/programs/kubie.nix | 24 | ||||
| -rw-r--r-- | home/programs/mpv.nix | 16 | ||||
| -rw-r--r-- | home/programs/onepassword.nix | 14 | ||||
| -rw-r--r-- | home/programs/rust.nix | 15 | ||||
| -rw-r--r-- | home/programs/ssh.nix | 33 | ||||
| -rw-r--r-- | home/programs/starship.nix | 70 | ||||
| -rw-r--r-- | home/programs/tmux.nix | 21 | ||||
| -rw-r--r-- | home/programs/yt-dlp.nix | 17 |
21 files changed, 1 insertions, 666 deletions
diff --git a/home/programs/alacritty/catppuccin-latte.toml b/home/programs/alacritty/catppuccin-latte.toml deleted file mode 100644 index e9414ad..0000000 --- a/home/programs/alacritty/catppuccin-latte.toml +++ /dev/null @@ -1,65 +0,0 @@ -[colors.primary] -background = "#eff1f5" -foreground = "#4c4f69" -dim_foreground = "#8c8fa1" -bright_foreground = "#4c4f69" - -[colors.cursor] -text = "#eff1f5" -cursor = "#dc8a78" - -[colors.vi_mode_cursor] -text = "#eff1f5" -cursor = "#7287fd" - -[colors.search.matches] -foreground = "#eff1f5" -background = "#6c6f85" - -[colors.search.focused_match] -foreground = "#eff1f5" -background = "#40a02b" - -[colors.footer_bar] -foreground = "#eff1f5" -background = "#6c6f85" - -[colors.hints.start] -foreground = "#eff1f5" -background = "#df8e1d" - -[colors.hints.end] -foreground = "#eff1f5" -background = "#6c6f85" - -[colors.selection] -text = "#eff1f5" -background = "#dc8a78" - -[colors.normal] -black = "#bcc0cc" -red = "#d20f39" -green = "#40a02b" -yellow = "#df8e1d" -blue = "#1e66f5" -magenta = "#ea76cb" -cyan = "#179299" -white = "#5c5f77" - -[colors.bright] -black = "#acb0be" -red = "#d20f39" -green = "#40a02b" -yellow = "#df8e1d" -blue = "#1e66f5" -magenta = "#ea76cb" -cyan = "#179299" -white = "#6c6f85" - -[[colors.indexed_colors]] -index = 16 -color = "#fe640b" - -[[colors.indexed_colors]] -index = 17 -color = "#dc8a78" diff --git a/home/programs/alacritty/catppuccin-mocha.toml b/home/programs/alacritty/catppuccin-mocha.toml deleted file mode 100644 index 7762dcd..0000000 --- a/home/programs/alacritty/catppuccin-mocha.toml +++ /dev/null @@ -1,65 +0,0 @@ -[colors.primary] -background = "#1e1e2e" -foreground = "#cdd6f4" -dim_foreground = "#7f849c" -bright_foreground = "#cdd6f4" - -[colors.cursor] -text = "#1e1e2e" -cursor = "#f5e0dc" - -[colors.vi_mode_cursor] -text = "#1e1e2e" -cursor = "#b4befe" - -[colors.search.matches] -foreground = "#1e1e2e" -background = "#a6adc8" - -[colors.search.focused_match] -foreground = "#1e1e2e" -background = "#a6e3a1" - -[colors.footer_bar] -foreground = "#1e1e2e" -background = "#a6adc8" - -[colors.hints.start] -foreground = "#1e1e2e" -background = "#f9e2af" - -[colors.hints.end] -foreground = "#1e1e2e" -background = "#a6adc8" - -[colors.selection] -text = "#1e1e2e" -background = "#f5e0dc" - -[colors.normal] -black = "#45475a" -red = "#f38ba8" -green = "#a6e3a1" -yellow = "#f9e2af" -blue = "#89b4fa" -magenta = "#f5c2e7" -cyan = "#94e2d5" -white = "#bac2de" - -[colors.bright] -black = "#585b70" -red = "#f38ba8" -green = "#a6e3a1" -yellow = "#f9e2af" -blue = "#89b4fa" -magenta = "#f5c2e7" -cyan = "#94e2d5" -white = "#a6adc8" - -[[colors.indexed_colors]] -index = 16 -color = "#fab387" - -[[colors.indexed_colors]] -index = 17 -color = "#f5e0dc" diff --git a/home/programs/alacritty/default.nix b/home/programs/alacritty/default.nix deleted file mode 100644 index 95f17ec..0000000 --- a/home/programs/alacritty/default.nix +++ /dev/null @@ -1,57 +0,0 @@ -{ config, ... }: -let - defaultFont = "Source Code Pro"; -in -{ - programs.alacritty = { - enable = true; - settings = { - env.TERM = "xterm-256color"; - general.import = [ - "${config.xdg.configHome}/alacritty/catppuccin-mocha.toml" - ]; - selection.save_to_clipboard = true; - window = { - dimensions = { - columns = 120; - lines = 40; - }; - padding = { - x = 2; - y = 2; - }; - }; - scrolling = { - history = 10000; - multiplier = 3; - }; - font = { - normal.family = defaultFont; - bold = { - family = defaultFont; - style = "Bold"; - }; - italic = { - family = defaultFont; - style = "Italic"; - }; - size = 14; - offset = { - x = 0; - y = 0; - }; - glyph_offset = { - x = 0; - y = 0; - }; - }; - }; - }; - - home.file.".config/alacritty/catppuccin-latte.toml" = { - source = ./catppuccin-latte.toml; - }; - home.file.".config/alacritty/catppuccin-mocha.toml" = { - source = ./catppuccin-mocha.toml; - }; -} diff --git a/home/programs/bat.nix b/home/programs/bat.nix deleted file mode 100644 index fb27397..0000000 --- a/home/programs/bat.nix +++ /dev/null @@ -1,10 +0,0 @@ -{ ... }: -{ - programs.bat = { - enable = true; - config = { - theme = "ansi"; - pager = "less -FR"; - }; - }; -} diff --git a/home/programs/direnv.nix b/home/programs/direnv.nix deleted file mode 100644 index bad971d..0000000 --- a/home/programs/direnv.nix +++ /dev/null @@ -1,13 +0,0 @@ -{ ... }: -{ - programs.direnv = { - enable = true; - nix-direnv.enable = true; - config.global = { - disable_stdin = true; - strict_env = true; - hide_env_diff = true; - warn_timeout = 0; - }; - }; -} diff --git a/home/programs/eza.nix b/home/programs/eza.nix deleted file mode 100644 index f71b9b6..0000000 --- a/home/programs/eza.nix +++ /dev/null @@ -1,22 +0,0 @@ -{ ... }: -{ - programs.eza = { - enable = true; - icons = "never"; - colors = "always"; - git = true; - enableFishIntegration = false; - extraOptions = [ - "--group-directories-first" - "--no-quotes" - "--git-ignore" - "--icons=never" - ]; - }; - - programs.fish.shellAliases = { - la = "eza -la"; - ll = "eza -la -L=1"; - lt = "eza -aT -L=2"; - }; -} diff --git a/home/programs/fd.nix b/home/programs/fd.nix deleted file mode 100644 index cdbae66..0000000 --- a/home/programs/fd.nix +++ /dev/null @@ -1,12 +0,0 @@ -{ ... }: -{ - # an alternative to find - programs.fd = { - enable = true; - hidden = true; - ignores = [ - ".git/" - ".direnv/" - ]; - }; -} diff --git a/home/programs/firefox/extensions.nix b/home/programs/firefox/extensions.nix index bac8a78..20bfa49 100644 --- a/home/programs/firefox/extensions.nix +++ b/home/programs/firefox/extensions.nix @@ -5,4 +5,5 @@ with pkgs.nur.repos.rycee.firefox-addons; consent-o-matic sponsorblock ublock-origin + onepassword-password-manager ] diff --git a/home/programs/fish.nix b/home/programs/fish.nix deleted file mode 100644 index 0cbed8c..0000000 --- a/home/programs/fish.nix +++ /dev/null @@ -1,24 +0,0 @@ -{ ... }: -{ - programs.fish = { - enable = true; - interactiveShellInit = '' - set fish_greeting "" - - # Add utmctl to PATH - fish_add_path /Applications/UTM.app/Contents/MacOS/ - ''; - shellAbbrs = { - ncg = "nix-collect-garbage --delete-older-than 7d"; - ndc = "nix develop --command"; - nfc = "nix flake check"; - ngcroot = "ls -al /nix/var/nix/gcroots/auto/"; - nph = "nix profile history --profile /nix/var/nix/profiles/system"; - nsn = "nix search nixpkgs"; - nsv = "nix store verify --all"; - - g = "git"; - gap = "git add --patch"; - }; - }; -} diff --git a/home/programs/gh.nix b/home/programs/gh.nix deleted file mode 100644 index b194b35..0000000 --- a/home/programs/gh.nix +++ /dev/null @@ -1,15 +0,0 @@ -{ ... }: -{ - programs.gh = { - enable = true; - settings = { - version = 1; - git_protocol = "ssh"; - prompt = "enabled"; - aliases = { - co = "pr checkout"; - vw = "pr view --web"; - }; - }; - }; -} diff --git a/home/programs/git.nix b/home/programs/git.nix deleted file mode 100644 index 354dc71..0000000 --- a/home/programs/git.nix +++ /dev/null @@ -1,90 +0,0 @@ -{ - config, - lib, - pkgs, - ... -}: -let - inherit (config) userinfo; -in -{ - home.packages = with pkgs; [ - gitAndTools.pre-commit - git-credential-manager - ]; - - programs.git = { - enable = true; - - delta = { - enable = true; - options.features = "decorations side-by-side line-numbers"; - }; - - userName = lib.mkDefault userinfo.fullName; - userEmail = lib.mkDefault userinfo.email; - - aliases = { - amend = "commit --amend"; - a = "commit --amend --no-edit"; - st = "status"; - co = "checkout"; - br = "branch"; - rb = "pull --rebase"; - hist = "log --pretty=format:\"%Cgreen%h %Creset%cd %Cblue[%cn] %Creset%s%C(yellow)%d%C(reset)\" --graph --date=relative --decorate --all"; - llog = "log --graph --name-status --pretty=format:\"%C(red)%h %C(reset)(%cd) %C(green)%an %Creset%s %C(yellow)%d%Creset\" --date=relative"; - logo = "log --pretty=format:\"%C(yellow)%h%Cred%d %Creset%s%Cblue (%cn)\" --decorate"; - logf = "log --pretty=format:\"%C(yellow)%h%Cred%d %Creset%s%Cblue (%cn)\" --decorate --numstat"; - }; - - ignores = [ - ".DS_Store" - ".aider.*" - ".direnv" - ]; - - extraConfig = { - core.whitespace = "trailing-space,space-before-tab"; - color.ui = true; - - # nicer output - column.ui = "auto"; - - # https://adamj.eu/tech/2024/01/18/git-improve-diff-histogram/ - diff.algorithm = "histogram"; - - init.defaultBranch = "main"; - - # https://blog.gitbutler.com/how-git-core-devs-configure-git/ - push = { - # abort if the remote branch does not match the local one - default = "simple"; - autoSetupRemote = true; - followTags = true; - }; - - fetch = { - prune = true; - pruneTags = true; - all = true; - }; - - pull.rebase = true; - - rebase = { - autosquash = true; - updateRefs = true; - # Automatically create a temporary stash entry before the - # operation begins, and apply it after the operation ends. - autoStash = true; - # Print a warning if some commits are removed - missingCommitsCheck = "warn"; - }; - - branch = { - autosetuprebase = "remote"; - sort = "authordate"; - }; - }; - }; -} diff --git a/home/programs/go.nix b/home/programs/go.nix deleted file mode 100644 index 0ae1ec1..0000000 --- a/home/programs/go.nix +++ /dev/null @@ -1,24 +0,0 @@ -{ pkgs, config, ... }: -{ - programs.go = { - enable = true; - goPath = ".local/share/pkg.go"; - goBin = ".local/bin.go"; - goPrivate = [ - "github.rbx.com/*" - "github.com/fcuny/*" - ]; - }; - - home.packages = with pkgs; [ - delve - go-tools # collection of tools, https://github.com/dominikh/go-tools - golangci-lint - gopls - ]; - - home.sessionPath = [ - config.home.sessionVariables.GOBIN - "${config.home.homeDirectory}/.local/bin" - ]; -} diff --git a/home/programs/k9s.nix b/home/programs/k9s.nix deleted file mode 100644 index 2d60ab1..0000000 --- a/home/programs/k9s.nix +++ /dev/null @@ -1,59 +0,0 @@ -{ ... }: -{ - programs.k9s = { - enable = true; - settings = { - k9s = { - refreshRate = 1; - }; - }; - plugin = { - plugins = { - log-bat = { - shortCut = "Shift-L"; - description = "Logs (bat)"; - scopes = [ "po" ]; - command = "bash"; - background = false; - args = [ - "-c" - "\"$@\" | bat" - "dummy-arg" - "kubectl" - "logs" - "$NAME" - "-n" - "$NAMESPACE" - "--context" - "$CONTEXT" - "--kubeconfig" - "$KUBECONFIG" - ]; - }; - log-bat-container = { - shortCut = "Shift-L"; - description = "Logs (bat)"; - scopes = [ "containers" ]; - command = "bash"; - background = false; - args = [ - "-c" - "\"$@\" | bat" - "dummy-arg" - "kubectl" - "logs" - "-c" - "$NAME" - "$POD" - "-n" - "$NAMESPACE" - "--context" - "$CONTEXT" - "--kubeconfig" - "$KUBECONFIG" - ]; - }; - }; - }; - }; -} diff --git a/home/programs/kubie.nix b/home/programs/kubie.nix deleted file mode 100644 index 5ac8678..0000000 --- a/home/programs/kubie.nix +++ /dev/null @@ -1,24 +0,0 @@ -{ pkgs, ... }: -{ - home.packages = with pkgs; [ - kubie # kubeconfig browser https://github.com/sbstp/kubie - ]; - - home.file.kubie = { - target = ".kube/kubie.yaml"; - text = '' - shell: fish - configs: - include: - - ~/.kube/rksconfig - prompt: - fish_use_rprompt: false - ''; - }; - - programs.fish = { - shellAbbrs = { - kctx = "kubie ctx"; - }; - }; -} diff --git a/home/programs/mpv.nix b/home/programs/mpv.nix deleted file mode 100644 index 925d4fe..0000000 --- a/home/programs/mpv.nix +++ /dev/null @@ -1,16 +0,0 @@ -{ pkgs, ... }: -{ - programs.mpv = { - enable = true; - config = { - screenshot-directory = "~/Documents/screenshots"; - ontop = true; - profile = "gpu-hq"; - }; - scripts = with pkgs.mpvScripts; [ - sponsorblock - quality-menu # Switch video quality from YT on-the-go - vr-reversal # Script for mpv to play VR video with optional saving of head tracking data - ]; - }; -} diff --git a/home/programs/onepassword.nix b/home/programs/onepassword.nix deleted file mode 100644 index 6f7b7f5..0000000 --- a/home/programs/onepassword.nix +++ /dev/null @@ -1,14 +0,0 @@ -{ pkgs, ... }: -{ - programs.onepassword = { - enable = true; - sshKeys = [ - { account = "my.1password.com"; } # All keys from personal account - ]; - }; - - # install the extension for firefox - programs.firefox.profiles.franck.extensions.packages = [ - pkgs.nur.repos.rycee.firefox-addons.onepassword-password-manager - ]; -} diff --git a/home/programs/rust.nix b/home/programs/rust.nix deleted file mode 100644 index 6ee3094..0000000 --- a/home/programs/rust.nix +++ /dev/null @@ -1,15 +0,0 @@ -{ config, pkgs, ... }: -{ - home.packages = with pkgs; [ - rustup - ]; - - home.sessionVariables = { - RUSTUP_HOME = "${config.xdg.dataHome}/rustup"; - CARGO_HOME = "${config.xdg.dataHome}/cargo"; - }; - - home.sessionPath = [ - "${config.xdg.dataHome}/cargo/bin" - ]; -} diff --git a/home/programs/ssh.nix b/home/programs/ssh.nix deleted file mode 100644 index c236904..0000000 --- a/home/programs/ssh.nix +++ /dev/null @@ -1,33 +0,0 @@ -{ pkgs, config, ... }: -{ - # https://github.com/nix-community/home-manager/blob/master/modules/programs/ssh.nix - programs.ssh = { - enable = true; - forwardAgent = true; - serverAliveInterval = 60; - controlMaster = "auto"; - controlPersist = "30m"; - controlPath = "${config.home.homeDirectory}/.ssh/sockets/S.%r@%h:%p"; - - matchBlocks = { - "git.fcuny.net" = { - proxyCommand = "${pkgs.cloudflared}/bin/cloudflared access ssh --hostname %h"; - }; - "github.com" = { - hostname = "github.com"; - user = "git"; - forwardAgent = false; - extraOptions = { - preferredAuthentications = "publickey"; - controlMaster = "no"; - controlPath = "none"; - }; - }; - }; - }; - - home.file = { - # we need this path to be created so that the control path can be used. - ".ssh/sockets/.keep".text = "# Managed by Home Manager"; - }; -} diff --git a/home/programs/starship.nix b/home/programs/starship.nix deleted file mode 100644 index d3f4359..0000000 --- a/home/programs/starship.nix +++ /dev/null @@ -1,70 +0,0 @@ -{ ... }: -{ - programs.starship = { - enable = true; - settings = { - add_newline = false; - palette = "catppuccin_mocha"; - character = { - success_symbol = "[›](bold green)"; - error_symbol = "[›](bold red)"; - }; - directory = { - fish_style_pwd_dir_length = 3; - }; - git_branch = { - symbol = "🌱 "; - }; - git_commit = { - commit_hash_length = 4; - }; - git_status = { - deleted = "✗"; - modified = "✶"; - staged = "✓"; - stashed = "≡"; - }; - "$schema" = "https://starship.rs/config-schema.json"; - hostname = { - ssh_only = true; - }; - username = { - disabled = true; - }; - kubernetes = { - disabled = false; - style = "bold blue"; - }; - # https://github.com/catppuccin/starship/blob/main/starship.toml - palettes.catppuccin_mocha = { - rosewater = "#f5e0dc"; - flamingo = "#f2cdcd"; - pink = "#f5c2e7"; - mauve = "#cba6f7"; - red = "#f38ba8"; - maroon = "#eba0ac"; - peach = "#fab387"; - yellow = "#f9e2af"; - green = "#a6e3a1"; - teal = "#94e2d5"; - sky = "#89dceb"; - sapphire = "#74c7ec"; - blue = "#89b4fa"; - lavender = "#b4befe"; - text = "#cdd6f4"; - subtext1 = "#bac2de"; - subtext0 = "#a6adc8"; - overlay2 = "#9399b2"; - overlay1 = "#7f849c"; - overlay0 = "#6c7086"; - surface2 = "#585b70"; - surface1 = "#45475a"; - surface0 = "#313244"; - base = "#1e1e2e"; - mantle = "#181825"; - crust = "#11111b"; - }; - nix_shell.disabled = false; - }; - }; -} diff --git a/home/programs/tmux.nix b/home/programs/tmux.nix deleted file mode 100644 index 9b84f5c..0000000 --- a/home/programs/tmux.nix +++ /dev/null @@ -1,21 +0,0 @@ -{ pkgs, ... }: -{ - programs.tmux = { - enable = true; - terminal = "xterm-256color"; - escapeTime = 0; - aggressiveResize = true; - baseIndex = 1; - shortcut = "z"; - clock24 = true; - shell = "${pkgs.fish}/bin/fish"; - historyLimit = 50000; # Bigger buffer - extraConfig = '' - setw -g mouse on - # Avoid date/time taking up space - set -g status-right "" - set -g status-right-length 0 - set-option -g renumber-windows on - ''; - }; -} diff --git a/home/programs/yt-dlp.nix b/home/programs/yt-dlp.nix deleted file mode 100644 index ae48c18..0000000 --- a/home/programs/yt-dlp.nix +++ /dev/null @@ -1,17 +0,0 @@ -{ ... }: -{ - programs.yt-dlp = { - enable = true; - - settings = { - mtime = false; - merge-output-format = "mkv"; - restrict-filenames = true; - embed-thumbnail = true; - embed-metadata = true; - embed-chapters = true; - sponsorblock-mark = "sponsor"; - output = "~/Movies/%(uploader)s/%(upload_date>%Y-%m-%d)s-%(title)s-%(id)s.%(ext)s"; - }; - }; -} |
