mew
This commit is contained in:
parent
9c9a3fe8ad
commit
86953ea925
17 changed files with 1110 additions and 606 deletions
|
|
@ -61,7 +61,8 @@
|
|||
|
||||
user.name = "Lucy Hochkamp";
|
||||
user.email = "git@xyno.systems";
|
||||
user.signingKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIuwQJY0H/fdu1UmGXAut7VfcvAk2Dm78tJpkyyv2in2";
|
||||
user.signingKey = # TODO: don't hardcode a computer
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAID/oMAi5jyQsNohfhcSH2ItisTpBGB0WtYTVxJYKKqhj"; # theseus
|
||||
|
||||
# Set default "git pull" behaviour so it doesn't try to default to
|
||||
# either "git fetch; git merge" (default) or "git fetch; git rebase".
|
||||
|
|
|
|||
0
hm-modules/eww/eww.scss
Normal file
0
hm-modules/eww/eww.scss
Normal file
39
hm-modules/eww/eww.yuck
Normal file
39
hm-modules/eww/eww.yuck
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
(defwindow bar
|
||||
:monitor 0
|
||||
:hexpand false
|
||||
:vexpand false
|
||||
:geometry (geometry :anchor "top left" :x 0 :y 0 :width "100%")
|
||||
; :reserve (struts :distance "10px" :side "top")
|
||||
(bar))
|
||||
|
||||
(defwidget bar
|
||||
(centerbox :orientation "h"
|
||||
(left)
|
||||
(center)
|
||||
(right)))
|
||||
|
||||
(defwidget left []
|
||||
:halign "start"
|
||||
(workspaces)
|
||||
)
|
||||
|
||||
(defwidget workspaces []
|
||||
(box :class "workspaces"
|
||||
:orientation "h"
|
||||
:space-evenly true
|
||||
:spacing 5
|
||||
(button :onclick "wmctrl -s 0" 1)
|
||||
(button :onclick "wmctrl -s 1" 2)
|
||||
(button :onclick "wmctrl -s 2" 3)
|
||||
(button :onclick "wmctrl -s 3" 4)
|
||||
(button :onclick "wmctrl -s 4" 5)
|
||||
(button :onclick "wmctrl -s 5" 6)
|
||||
(button :onclick "wmctrl -s 6" 7)
|
||||
(button :onclick "wmctrl -s 7" 8)
|
||||
(button :onclick "wmctrl -s 8" 9)))
|
||||
|
||||
(defwidget center []
|
||||
:haligh "center"
|
||||
(window_name))
|
||||
|
||||
(defwidget )
|
||||
|
|
@ -18,7 +18,7 @@ in
|
|||
nodePackages_latest.vscode-langservers-extracted
|
||||
## python
|
||||
ruff-lsp
|
||||
nodePackages_latest.pyright
|
||||
# nodePackages_latest.pyright
|
||||
];
|
||||
programs.helix = {
|
||||
package = inputs.helix.packages.${pkgs.system}.default;
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@ let
|
|||
in
|
||||
{
|
||||
options.ragon.nushell.enable = lib.mkOption { default = false; };
|
||||
options.ragon.nushell.isNixOS = lib.mkOption { default = false; };
|
||||
config = lib.mkIf cfg.enable {
|
||||
programs.direnv = {
|
||||
enable = true;
|
||||
|
|
@ -13,82 +14,86 @@ in
|
|||
programs.nushell = {
|
||||
enable = true;
|
||||
extraConfig = ''
|
||||
let carapace_completer = {|spans: list<string>|
|
||||
carapace $spans.0 nushell ...$spans
|
||||
| from json
|
||||
| if ($in | default [] | where value =~ '^-.*ERR$' | is-empty) { $in } else { null }
|
||||
}
|
||||
let external_completer = {|spans|
|
||||
let expanded_alias = scope aliases
|
||||
| where name == $spans.0
|
||||
| get -i 0.expansion
|
||||
let carapace_completer = {|spans: list<string>|
|
||||
carapace $spans.0 nushell ...$spans
|
||||
| from json
|
||||
| if ($in | default [] | where value =~ '^-.*ERR$' | is-empty) { $in } else { null }
|
||||
}
|
||||
let external_completer = {|spans|
|
||||
let expanded_alias = scope aliases
|
||||
| where name == $spans.0
|
||||
| get -i 0.expansion
|
||||
|
||||
let spans = if $expanded_alias != null {
|
||||
$spans
|
||||
| skip 1
|
||||
| prepend ($expanded_alias | split row ' ' | take 1)
|
||||
} else {
|
||||
$spans
|
||||
}
|
||||
let spans = if $expanded_alias != null {
|
||||
$spans
|
||||
| skip 1
|
||||
| prepend ($expanded_alias | split row ' ' | take 1)
|
||||
} else {
|
||||
$spans
|
||||
}
|
||||
|
||||
match $spans.0 {
|
||||
# carapace completions are incorrect for nu
|
||||
# nu => $fish_completer
|
||||
# fish completes commits and branch names in a nicer way
|
||||
# git => $fish_completer
|
||||
# carapace doesn't have completions for asdf
|
||||
# asdf => $fish_completer
|
||||
# use zoxide completions for zoxide commands
|
||||
# __zoxide_z | __zoxide_zi => $zoxide_completer
|
||||
_ => $carapace_completer
|
||||
} | do $in $spans
|
||||
}
|
||||
$env.config = {
|
||||
edit_mode: vi
|
||||
show_banner: false,
|
||||
completions: {
|
||||
case_sensitive: false # case-sensitive completions
|
||||
quick: true # set to false to prevent auto-selecting completions
|
||||
partial: true # set to false to prevent partial filling of the prompt
|
||||
algorithm: "fuzzy" # prefix or fuzzy
|
||||
external: {
|
||||
# set to false to prevent nushell looking into $env.PATH to find more suggestions
|
||||
enable: true
|
||||
# set to lower can improve completion performance at the cost of omitting some options
|
||||
max_results: 100
|
||||
completer: $external_completer # check 'carapace_completer'
|
||||
match $spans.0 {
|
||||
# carapace completions are incorrect for nu
|
||||
# nu => $fish_completer
|
||||
# fish completes commits and branch names in a nicer way
|
||||
# git => $fish_completer
|
||||
# carapace doesn't have completions for asdf
|
||||
# asdf => $fish_completer
|
||||
# use zoxide completions for zoxide commands
|
||||
# __zoxide_z | __zoxide_zi => $zoxide_completer
|
||||
_ => $carapace_completer
|
||||
} | do $in $spans
|
||||
}
|
||||
$env.config = {
|
||||
edit_mode: vi
|
||||
show_banner: false,
|
||||
completions: {
|
||||
case_sensitive: false # case-sensitive completions
|
||||
quick: true # set to false to prevent auto-selecting completions
|
||||
partial: true # set to false to prevent partial filling of the prompt
|
||||
algorithm: "fuzzy" # prefix or fuzzy
|
||||
external: {
|
||||
# set to false to prevent nushell looking into $env.PATH to find more suggestions
|
||||
enable: true
|
||||
# set to lower can improve completion performance at the cost of omitting some options
|
||||
max_results: 100
|
||||
completer: $external_completer # check 'carapace_completer'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
$env.EDITOR = "hx"
|
||||
$env.VISUAL = "hx"
|
||||
$env.NIX_REMOTE = "daemon"
|
||||
$env.NIX_USER_PROFILE_DIR = $"/nix/var/nix/profiles/per-user/($env.USER)"
|
||||
$env.NIX_PROFILES = $"/nix/var/nix/profiles/default:($env.HOME)/.nix-profile"
|
||||
$env.NIX_SSL_CERT_FILE = "/etc/ssl/certs/ca-certificates.crt"
|
||||
$env.NIX_PATH = "nixpkgs=/nix/var/nix/profiles/per-user/root/channels/nixpkgs:/nix/var/nix/profiles/per-user/root/channels"
|
||||
$env.PATH = ($env.PATH |
|
||||
split row (char esep) |
|
||||
append /usr/bin/env |
|
||||
append $"($env.HOME)/.nix-profile/bin" |
|
||||
append "/nix/var/nix/profiles/default/bin" |
|
||||
append $"/etc/profiles/per-user/($env.USER)/bin" |
|
||||
append "/run/current-system/sw/bin" |
|
||||
append "/opt/homebrew/bin" |
|
||||
append $"($env.HOME)/.cargo/bin" |
|
||||
append $"($env.HOME)/.local/bin"
|
||||
)
|
||||
alias no = open
|
||||
alias open = ^open
|
||||
alias l = ls -al
|
||||
alias ll = ls -l
|
||||
alias ga = git add
|
||||
alias gaa = git add -A
|
||||
alias gd = git diff
|
||||
alias gc = git commit
|
||||
alias gp = git push
|
||||
alias gpl = git pull
|
||||
alias ytl = yt-dlp -f "bv*+mergeall[vcodec=none]" --audio-multistreams
|
||||
}
|
||||
$env.EDITOR = "hx"
|
||||
$env.VISUAL = "hx"
|
||||
alias no = open
|
||||
alias open = ^open
|
||||
alias l = ls -al
|
||||
alias ll = ls -l
|
||||
alias ga = git add
|
||||
alias gaa = git add -A
|
||||
alias gd = git diff
|
||||
alias gc = git commit
|
||||
alias gp = git push
|
||||
alias gpl = git pull
|
||||
alias ytl = yt-dlp -f "bv*+mergeall[vcodec=none]" --audio-multistreams
|
||||
alias conf = cd ~/proj/nixos-config
|
||||
${(if !cfg.isNixOS then ''
|
||||
|
||||
$env.NIX_REMOTE = "daemon"
|
||||
$env.NIX_USER_PROFILE_DIR = $"/nix/var/nix/profiles/per-user/($env.USER)"
|
||||
$env.NIX_PROFILES = $"/nix/var/nix/profiles/default:($env.HOME)/.nix-profile"
|
||||
$env.NIX_SSL_CERT_FILE = "/etc/ssl/certs/ca-certificates.crt"
|
||||
$env.NIX_PATH = "nixpkgs=/nix/var/nix/profiles/per-user/root/channels/nixpkgs:/nix/var/nix/profiles/per-user/root/channels"
|
||||
$env.PATH = ($env.PATH |
|
||||
split row (char esep) |
|
||||
append /usr/bin/env |
|
||||
append $"($env.HOME)/.nix-profile/bin" |
|
||||
append "/nix/var/nix/profiles/default/bin" |
|
||||
append $"/etc/profiles/per-user/($env.USER)/bin" |
|
||||
append "/run/current-system/sw/bin" |
|
||||
append "/opt/homebrew/bin" |
|
||||
append $"($env.HOME)/.cargo/bin" |
|
||||
append $"($env.HOME)/.local/bin"
|
||||
)
|
||||
'' else "")}
|
||||
'';
|
||||
shellAliases = {
|
||||
vi = "hx";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue