I wrote two blog posts how to hoard Youtube videos and serve them locally without ads and other bloat. I think other datahoarders will find them interesting. I also have other posts about NASes and homelabs under the "homelab" tag.
I'm a fan of gaming - my main game is Overwatch. Until this week I've been using xwayland or gamescope to run Wine games which comes with downsides. Xwayland's window management can be buggy - in Gnome I can end up unable to switch back to a game window. Gamescope has some latency and visual artifact issues in my preferred window manager.
But now with the Wine 10 release candidates you can run Wine in native Wayland mode without any special registry settings or anything. And it works very well as far as I can tell! I went through the trouble of figuring out how to get Wine 10 set up on NixOS so I thought I would share.
Wine 10 is currently available in nixos-unstable. The simplest way I've found to get it working for games is to use Lutris, and to install both Lutris and Wine from unstable. To get a complete Wine setup for Lutris use wineWowPackages - for example wineWowPackages.stagingFull. The Full variant includes wine-mono which you'll probably want, and the staging pac
It took me some time to work out how to get my ssh agent set up in Niri so I though I would share what I did. I'm using NixOS and Home Manager. I put this in my Home Manager config:
I'm using GDM according to NixOS' default configuration which I think runs gnome-keyring (I thought I saw it in the process list before I set up the user unit), and I think that configuration is automatically unlocking gnome-keyring when I log in via PAM integration. But apparently I need to run gnome-keyring again in my window manager session. Home Manager's services.gnome-keyring adds a systemd user unit that does that.
It took me some time to work out how to get my ssh agent set up in Niri so I though I would share what I did. I'm using NixOS and Home Manager. I put this in my Home Manager config:
I'm using GDM according to NixOS' default configuration which I think runs gnome-keyring (I thought I saw it in the process list before I set up the user unit), and I think that configuration is automatically unlocking gnome-keyring when I log in via PAM integration. But apparently I need to run gnome-keyring again in my window manager session. Home Manager's services.gnome-keyring adds a systemd user unit that does that.
Posting just because I looked all over and didn't see an answer. This function expands its arguments to canonical, absolute file paths, and tests whether one is a string prefix of the other. It also works for checking whether a directory is inside of or is identical to another directory.
lua
local is_file_in_directory = function(file_path, directory_path)
local file = vim.fn.fnamemodify(file_path, ':p')
local dir = vim.fn.fnamemodify(directory_path, ':p')
return file ~= nil and dir ~= nil and
-- is dir an initial substring of file?
file:find(dir, 1, true) == 1
end
This came up because I'm setting up obsidian.nvim which looks like a handy way to get the best of both worlds between Obsidian and Neovim. I'm setting up some custom configuration to automatically change th
I just noticed it today while trying to attach an image in a web app. Last time I did this I was greeted with an image picker where I could tap Browse to get to the system image picker that allows me to go into Files or Google Photos among other file sources. This new picker doesn't see Photos' albums. Instead it presents some folders as albums. I don't see an ability to get out of it to get to the system sources from the UI.
Solution
It seems like setting this flag to EnabledorDisabled brings back the old behavior.
I haven't tested all the remaining values. It seems like for some (h/t @[email protected]) only Disabled brings up the old picker that allows to get to the system picker.
To those self-hosters who are out there curious if there exists a faster Nextcloud-like alternative without all the bells and whistles.
I present to you, OCIS!
This howto assumes that you're running a Linux OS and that you have a reverse proxy like caddy running.
To the guy who I suggested checking out OCIS, I wrote this guide for you ;)