Compare commits
5 Commits
7a3d2fee77
...
00f6800290
| Author | SHA1 | Date | |
|---|---|---|---|
| 00f6800290 | |||
| 56aed1cf2d | |||
| 88266b040f | |||
| 5f7fc8ea05 | |||
| 3a634375a0 |
8
flake.lock
generated
8
flake.lock
generated
@@ -1031,11 +1031,11 @@
|
|||||||
"quickshell": {
|
"quickshell": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1783436659,
|
"lastModified": 1785316762,
|
||||||
"narHash": "sha256-rh0BJlcRM8nFet9aYIaZMxe7M6BMNJOrSgJi3cPQ+Tc=",
|
"narHash": "sha256-YDCoSJbBsugRcugBSh4mgwaQkz51RbMEjMxPgZPsNoA=",
|
||||||
"ref": "refs/heads/main",
|
"ref": "refs/heads/main",
|
||||||
"rev": "68d4240fcbc605ee36a0e71797c04c0ac33f3e19",
|
"rev": "afbe360b080f349d27359b8507ce429aaa5a5a7e",
|
||||||
"revCount": 25,
|
"revCount": 26,
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://git.voidarc.co.uk/voidarc/quickshell"
|
"url": "https://git.voidarc.co.uk/voidarc/quickshell"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -34,6 +34,11 @@ template = '''
|
|||||||
{{- end -}}
|
{{- end -}}
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
[[blocks.segments]] # Hostname
|
||||||
|
type = 'text'
|
||||||
|
style = 'plain'
|
||||||
|
template = '{{ if eq .HostName "server02" }}<green> {{.HostName}}</> <#7f849c>|</> {{ end }}'
|
||||||
|
|
||||||
[[blocks.segments]] # Python venv
|
[[blocks.segments]] # Python venv
|
||||||
type = 'text'
|
type = 'text'
|
||||||
style = 'plain'
|
style = 'plain'
|
||||||
|
|||||||
@@ -33,71 +33,77 @@
|
|||||||
zsh = let
|
zsh = let
|
||||||
flakeLocation = builtins.getEnv "PWD";
|
flakeLocation = builtins.getEnv "PWD";
|
||||||
in
|
in
|
||||||
assert flakeLocation != "";
|
lib.warnIf (flakeLocation == "") "Flake Location is undefined. Are you building in the right directory?"
|
||||||
inputs.wrappers.wrappers.zsh.wrap {
|
inputs.wrappers.wrappers.zsh.wrap {
|
||||||
inherit pkgs;
|
inherit pkgs;
|
||||||
runtimePkgs = [pkgs.carapace pkgs.devenv pkgs.fzf];
|
runtimePkgs = [pkgs.carapace pkgs.devenv pkgs.fzf];
|
||||||
zshAliases = {
|
zshAliases = {
|
||||||
ls = "${lib.getExe pkgs.lsd} -l";
|
ls = "${lib.getExe pkgs.lsd} -l";
|
||||||
v = lib.getExe self'.packages.nvim;
|
v = lib.getExe self'.packages.nvim;
|
||||||
cat = lib.getExe pkgs.bat;
|
cat = lib.getExe pkgs.bat;
|
||||||
lg = lib.getExe pkgs.lazygit;
|
lg = lib.getExe pkgs.lazygit;
|
||||||
man = "man -P \"${lib.getExe pkgs.bat} -p\"";
|
man = "man -P \"${lib.getExe pkgs.bat} -p\"";
|
||||||
nsh = "nix-shell -p";
|
nsh = "nix-shell -p";
|
||||||
nrs = "( cd ${flakeLocation} && sudo nixos-rebuild switch --impure --flake . )";
|
nrs =
|
||||||
vinix = "nvim --cmd 'cd ${flakeLocation}'";
|
if flakeLocation != ""
|
||||||
};
|
then "( cd ${flakeLocation} && sudo nixos-rebuild switch --impure --flake . )"
|
||||||
zshrc.content = ''
|
else "echo 'Flake location not specified. Did you build with --impure?'";
|
||||||
source ${./devenv.zsh}
|
vinix =
|
||||||
|
if flakeLocation != ""
|
||||||
if (( ''${+terminfo[smkx]} )) && (( ''${+terminfo[rmkx]} )); then
|
then "nvim --cmd 'cd ${flakeLocation}'"
|
||||||
function zle-line-init() { echoti smkx }
|
else "echo 'Flake location not specified. Did you build with --impure?'";
|
||||||
function zle-line-finish() { echoti rmkx }
|
|
||||||
zle -N zle-line-init
|
|
||||||
zle -N zle-line-finish
|
|
||||||
fi
|
|
||||||
|
|
||||||
autoload -U compinit && compinit
|
|
||||||
export CARAPACE_BRIDGES='zsh,fish,bash,inshellisense' # optional
|
|
||||||
zstyle ':completion:*' format $'\e[2;37mCompleting %d\e[m'
|
|
||||||
source <(${lib.getExe pkgs.carapace} _carapace)
|
|
||||||
zstyle ':completion:*' matcher-list 'm:{[:lower:]}={[:upper:]}' 'r:|[._-]=* r:|=*' 'l:|=* r:|=*'
|
|
||||||
|
|
||||||
autoload -U select-word-style
|
|
||||||
select-word-style bash
|
|
||||||
|
|
||||||
autoload -U up-line-or-beginning-search down-line-or-beginning-search
|
|
||||||
zle -N up-line-or-beginning-search
|
|
||||||
zle -N down-line-or-beginning-search
|
|
||||||
bindkey "^[OA" up-line-or-beginning-search
|
|
||||||
bindkey "^[OB" down-line-or-beginning-search
|
|
||||||
|
|
||||||
bindkey "^[[1;5C" forward-word
|
|
||||||
bindkey "^[[1;5D" backward-word
|
|
||||||
bindkey "^[[3;5~" kill-word
|
|
||||||
bindkey "^H" backward-kill-word
|
|
||||||
|
|
||||||
source <(${lib.getExe pkgs.fzf} --zsh)
|
|
||||||
|
|
||||||
setopt NO_CASE_GLOB
|
|
||||||
|
|
||||||
${lib.getExe pkgs.any-nix-shell} zsh --info-right | source /dev/stdin
|
|
||||||
|
|
||||||
export EDITOR=nvim
|
|
||||||
|
|
||||||
eval "$(${lib.getExe self'.packages.ohMyPosh} init zsh)"
|
|
||||||
|
|
||||||
eval "$(${lib.getExe pkgs.devenv} hook zsh)"
|
|
||||||
|
|
||||||
typeset -ag precmd_functions
|
|
||||||
if (( ! ''${precmd_functions[(I)__devenv_reload_apply]} )); then
|
|
||||||
precmd_functions+=(__devenv_reload_apply)
|
|
||||||
fi
|
|
||||||
if (( ! ''${precmd_functions[(I)__devenv_restore_path]} )); then
|
|
||||||
precmd_functions+=(__devenv_restore_path)
|
|
||||||
fi
|
|
||||||
'';
|
|
||||||
};
|
};
|
||||||
|
zshrc.content = ''
|
||||||
|
source ${./devenv.zsh}
|
||||||
|
|
||||||
|
if (( ''${+terminfo[smkx]} )) && (( ''${+terminfo[rmkx]} )); then
|
||||||
|
function zle-line-init() { echoti smkx }
|
||||||
|
function zle-line-finish() { echoti rmkx }
|
||||||
|
zle -N zle-line-init
|
||||||
|
zle -N zle-line-finish
|
||||||
|
fi
|
||||||
|
|
||||||
|
autoload -U compinit && compinit
|
||||||
|
export CARAPACE_BRIDGES='zsh,fish,bash,inshellisense' # optional
|
||||||
|
zstyle ':completion:*' format $'\e[2;37mCompleting %d\e[m'
|
||||||
|
source <(${lib.getExe pkgs.carapace} _carapace)
|
||||||
|
zstyle ':completion:*' matcher-list 'm:{[:lower:]}={[:upper:]}' 'r:|[._-]=* r:|=*' 'l:|=* r:|=*'
|
||||||
|
|
||||||
|
autoload -U select-word-style
|
||||||
|
select-word-style bash
|
||||||
|
|
||||||
|
autoload -U up-line-or-beginning-search down-line-or-beginning-search
|
||||||
|
zle -N up-line-or-beginning-search
|
||||||
|
zle -N down-line-or-beginning-search
|
||||||
|
bindkey "^[OA" up-line-or-beginning-search
|
||||||
|
bindkey "^[OB" down-line-or-beginning-search
|
||||||
|
|
||||||
|
bindkey "^[[1;5C" forward-word
|
||||||
|
bindkey "^[[1;5D" backward-word
|
||||||
|
bindkey "^[[3;5~" kill-word
|
||||||
|
bindkey "^H" backward-kill-word
|
||||||
|
|
||||||
|
source <(${lib.getExe pkgs.fzf} --zsh)
|
||||||
|
|
||||||
|
setopt NO_CASE_GLOB
|
||||||
|
|
||||||
|
${lib.getExe pkgs.any-nix-shell} zsh --info-right | source /dev/stdin
|
||||||
|
|
||||||
|
export EDITOR=nvim
|
||||||
|
|
||||||
|
eval "$(${lib.getExe self'.packages.ohMyPosh} init zsh)"
|
||||||
|
|
||||||
|
eval "$(${lib.getExe pkgs.devenv} hook zsh)"
|
||||||
|
|
||||||
|
typeset -ag precmd_functions
|
||||||
|
if (( ! ''${precmd_functions[(I)__devenv_reload_apply]} )); then
|
||||||
|
precmd_functions+=(__devenv_reload_apply)
|
||||||
|
fi
|
||||||
|
if (( ! ''${precmd_functions[(I)__devenv_restore_path]} )); then
|
||||||
|
precmd_functions+=(__devenv_restore_path)
|
||||||
|
fi
|
||||||
|
'';
|
||||||
|
};
|
||||||
ohMyPosh = inputs.wrappers.wrappers.oh-my-posh.wrap {
|
ohMyPosh = inputs.wrappers.wrappers.oh-my-posh.wrap {
|
||||||
inherit pkgs;
|
inherit pkgs;
|
||||||
configFile = ./config.toml;
|
configFile = ./config.toml;
|
||||||
|
|||||||
@@ -8,12 +8,16 @@
|
|||||||
lib,
|
lib,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
playerctl
|
playerctl
|
||||||
pavucontrol
|
pavucontrol
|
||||||
];
|
pulseaudioFull
|
||||||
|
];
|
||||||
services.pulseaudio.enable = false;
|
services.pulseaudio.enable = false;
|
||||||
security.rtkit.enable = true;
|
security.rtkit.enable = true;
|
||||||
|
|
||||||
|
nixpkgs.config.pulseaudio = true;
|
||||||
|
|
||||||
services.pipewire = {
|
services.pipewire = {
|
||||||
enable = true;
|
enable = true;
|
||||||
alsa.enable = true;
|
alsa.enable = true;
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
moduleWithSystem,
|
moduleWithSystem,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
flake.nixosModules.desktop = moduleWithSystem ({...}: let
|
flake.nixosModules.desktop = moduleWithSystem ({pkgs, ...}: let
|
||||||
modules = with self.nixosModules; [
|
modules = with self.nixosModules; [
|
||||||
core
|
core
|
||||||
hyprland
|
hyprland
|
||||||
@@ -13,5 +13,8 @@
|
|||||||
];
|
];
|
||||||
in {
|
in {
|
||||||
imports = modules;
|
imports = modules;
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
mpv
|
||||||
|
];
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user