This commit is contained in:
Peder Bergebakken Sundt 2025-02-06 10:24:02 +01:00
parent 37fc7c3bd1
commit c63a83d78a
4 changed files with 15 additions and 11 deletions
todos.md
users/pbsds/home

@ -62,7 +62,7 @@
* [x] merge hosted docs into a single subdomain
# desktop
* [ ] transgui config
* [ ] xclip
* [x] xclip <-> wl-clipboard
* [x] add a hidpi profile? https://wiki.archlinux.org/title/HiDPI
* [ ] desktop entries - https://github.com/jakehamilton/config/blob/579827c699d9c78bd42e73f543eafb05a0d6c374/packages/hey/default.nix
* [ ] https://github.com/jakehamilton/config/blob/579827c699d9c78bd42e73f543eafb05a0d6c374/packages/xdg-open-with-portal/default.nix - extend it to work over ssh

@ -5,6 +5,7 @@
home.stateVersion = "23.11";
imports = [
./profiles/bashrc.d
#./profiles/sops.nix
./profiles/bat.nix
#./profiles/xdg-ninja.nix
@ -34,12 +35,6 @@
nix run nixpkgs#atom -- --disable-gpu --in-process-gpu --no-sandbox "$@"
}
if [[ -n "''${SSH_CLIENT-}" || -n "''${SSH_TTY-}" || -z "''${WAYLAND_DISPLAY-}" ]]; then
alias clip="xclip -sel clip -i -rmlastnl -t text/plain";
else
alias clip="wl-copy --trim-newline --type text/plain";
fi
nix-prefetch-sri() {
url="$1"; shift
nix hash to-sri --type sha256 "$@" "$(nix-prefetch-url "$url")"

@ -0,0 +1,12 @@
if ! command -v wl-copy >/dev/null \
|| [[
-n "${SSH_CLIENT-}" ||
-n "${SSH_TTY-}" ||
-z "${WAYLAND_DISPLAY-}" ||
"${XDG_SESSION_TYPE-}" != "wayland"
]]
then
alias clip="xclip -sel clip -i -rmlastnl -t text/plain";
else
alias clip="wl-copy --trim-newline --type text/plain";
fi

@ -47,10 +47,7 @@ in
};
imports = [
../profiles/bashrc.d
../modules/jump.nix
];
imports = [ ../modules/jump.nix ];
programs.jump.enableBash = true;
programs.nix-index.enable = true;