diff options
| author | Mike Vink <ivi@vinkies.net> | 2024-06-25 16:49:32 +0200 |
|---|---|---|
| committer | Mike Vink <ivi@vinkies.net> | 2024-06-25 16:51:29 +0200 |
| commit | 5f19ec51f8e0305ce08ff7a1c55c75e84979a3d2 (patch) | |
| tree | 143c7696fde381a8e7522f15c47b15bc7dc2e505 /profiles | |
| parent | c7cb36d521a8d2b9a2f87cc02ed5f8ba9df39656 (diff) | |
init
Diffstat (limited to 'profiles')
| -rw-r--r-- | profiles/core/home.nix | 1 | ||||
| -rw-r--r-- | profiles/graphical/suckless.nix | 8 | ||||
| -rw-r--r-- | profiles/station/codeium.nix | 58 | ||||
| -rw-r--r-- | profiles/station/k8s.nix | 7 |
4 files changed, 67 insertions, 7 deletions
diff --git a/profiles/core/home.nix b/profiles/core/home.nix index c7484e9..33e9061 100644 --- a/profiles/core/home.nix +++ b/profiles/core/home.nix @@ -199,6 +199,7 @@ ( command -v docker ) &>/dev/null && eval "$(docker completion zsh)" ( command -v kubectl ) &>/dev/null && eval "$(kubectl completion zsh)" ( command -v zoxide ) &>/dev/null && eval "$(zoxide init zsh)" + ( command -v pioctl ) &>/dev/null && eval "$(_PIOCTL_COMPLETE=zsh_source pioctl)" export PATH="$PATH:$HOME/.local/bin:/opt/homebrew/bin:${config.ivi.home}/.krew/bin:${config.ivi.home}/.cargo/bin:${pkgs.ncurses}/bin" [[ -f ~/.cache/wal/sequences ]] && (cat ~/.cache/wal/sequences &) unset LD_PRELOAD diff --git a/profiles/graphical/suckless.nix b/profiles/graphical/suckless.nix index b918494..27b302e 100644 --- a/profiles/graphical/suckless.nix +++ b/profiles/graphical/suckless.nix @@ -13,13 +13,6 @@ hm = { xsession = { enable = true; - initExtra = '' - ${pkgs.xorg.xset}/bin/xset r rate 230 30 - [ -z "$(lsusb | grep microdox)" ] && ${pkgs.xorg.setxkbmap}/bin/setxkbmap -option "ctrl:swapcaps" - ${pkgs.open-vm-tools}/bin/vmware-user-suid-wrapper - wal -R - dwm - ''; }; services.picom = { enable = true; @@ -87,6 +80,7 @@ dmenu librewolf xclip + mpv ]; }; } diff --git a/profiles/station/codeium.nix b/profiles/station/codeium.nix new file mode 100644 index 0000000..f63a9b3 --- /dev/null +++ b/profiles/station/codeium.nix @@ -0,0 +1,58 @@ +{ + inputs, + config, + pkgs, + ... +}: let + codeium = with pkgs; stdenv.mkDerivation rec { + pname = "codeium"; + version = "1.1.39"; + + ls-sha = "c8fda9657259bb7f3d432c1b558db921db4257aa"; + + src = fetchurl { + url = "https://github.com/Exafunction/codeium/releases/download/language-server-v${version}/language_server_linux_x64.gz"; + sha256 = "sha256-LA1VVW4X30a8UD9aDUCTmBKVXM7G0WE7dSsZ73TaaVo="; + }; + + nativeBuildInputs = [ + autoPatchelfHook + ]; + + sourceRoot = "."; + + unpackPhase = '' + cp $src language_server_linux_x64.gz + gzip -d language_server_linux_x64.gz + ''; + + installPhase = '' + install -m755 -D language_server_linux_x64 $out + ''; + + preFixup = '' + patchelf \ + --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \ + $out + ''; + + meta = with lib; { + homepage = "https://www.codeium.com/"; + description = "Codeium language server"; + platforms = platforms.linux; + }; + }; +in { + # home.activation = { + # # links codeium into place + # codium-symlink = inputs.home-manager.lib.hm.dag.entryAfter ["writeBoundary"] '' + # CODEIUM_TARGET="${config.home.homeDirectory}/.codeium/bin/c8fda9657259bb7f3d432c1b558db921db4257aa" + # if [ -L $CODEIUM_TARGET ] && [ -e $CODEIUM_TARGET ]; then + # $DRY_RUN_CMD echo "codeium linked" + # else + # mkdir -p $CODEIUM_TARGET + # $DRY_RUN_CMD ln -sf ${codeium} "$CODEIUM_TARGET/language_server_linux_x64" + # fi + # ''; + # }; +} diff --git a/profiles/station/k8s.nix b/profiles/station/k8s.nix new file mode 100644 index 0000000..bc2b8c3 --- /dev/null +++ b/profiles/station/k8s.nix @@ -0,0 +1,7 @@ +{ pkgs, ... }: { + environment.systemPackages = with pkgs; [ + kubernetes-helm + kubectl + kind + ]; +} |
