2024-08-29
· 4 minutes read
·
Hyprland
Sway
Wayland
NixOS
Linux
Cosmic
After a brief experiment with
Hyprland, I’m back to using Sway. My
experiment lasted less than a month, as I hoped Hyprland’s window
selector would resolve my window-sharing woes.
It turns out it wasn’t, because the first week back at work I had the
need to share a slideshow in full screen. Then it doesn’t matter if
you can select a window anymore. So my workarounds with Sway would
have worked in that use case while my Hyprland set up… didn’t.
Read On →
2024-07-23
· 3 minutes read
·
Hyprland
Sway
Wayland
NixOS
Linux
Introduction
After four years with Sway, I’ve decided to transition to Hyprland. My
journey from EXWM to Sway began about four years ago, and I documented
the experience in
this post three years ago.
While Sway has served me well, it has its limitations that I’ve used
hacks and workarounds to circumvent.
The Limitations of Sway
One major drawback of Sway is its
screen sharing
capabilities. Although I managed to get screen sharing somewhat
functional, it only allows sharing the full screen.
Read On →
2024-02-17
· 3 minutes read
·
NixOS
Linux
NixOS has a lot of configurability and features. One
feature that I’ve known about for a while that I think is both really cool,
but also a bit lesser known is the ability to have declarative
Specialisations. To me, this is a
superpower of NixOS that I have a hard time to see any other Linux
Distribution having.
What’s a Specialisation?
The name doesn’t do it justice, it’s a bit of a weird name for it. However
I couldn’t come up with a better name for it either.
Read On →
2022-10-10
· 5 minutes read
·
NixOS
Nix
Linux
Cachix
GitHub Actions
NixOS is a Linux-distribution that may be source-based, but it has a binary
cache that covers things so you generally don’t need to compile things,
things tends to be cached.
However, depending on how you configure your system, you may trigger compiles
depending on what you do.
So a thing I do is that I run Emacs 29 with the native-comp patches that is
wayland native with the pgtk-branch. This is by no mean the stable Emacs
release at the point of writing. So to get this Emacs I use the excellent
nix-community/emacs-overlay (that is maintained by my friend
@adisbladis). However, this means that I will get Emacs from a development
branch of Emacs, then I need to build all the Emacs packages that I use in my
configuration as well for this version of Emacs.
Read On →
2022-07-25
· 4 minutes read
·
Jellyfin
LG
Home Assistant
Linux
For over 10 years I’ve used Kodi on a separate PC connected to a TV to play
back local media.
A couple of weeks ago everything changed in a matter of days. I listened to
Late Night Linux – Episode 179
where they talked about Jellyfin. I have
looked into Jellyfin before, however I’ve disregarded it due to the lack of
app for LG webOS. This changed because the podcast episode told that there
was a webOS app for Jellyfin.
Read On →
2021-07-23
· 3 minutes read
·
NixOS
Nix
Linux
Nixus
Since I’ve started using NixOS about four years ago I haven’t really used any
tools to do central deployments of machines. But I’ve always read and known
that NixOS is excellent at this. NixOS can easily build another systems
configuration, then copy the system to the target systems nix store and then
activate it there.
Despite knowing all this, I haven’t gotten around to doing this centrally. A
while ago the need for this changed because one of my VPSes started running
low on RAM, low enough to not be able to build new generations of it’s own
system. Which posed a problem for future upgrades. One way to solve it would
be to pay more money for resources that aren’t really needed except from when
doing system upgrades. The other way would be to push pre-built systems from
another location. Using the second way is simpler and fixes the issue.
Read On →
2021-06-26
· 2 minutes read
·
NixOS
Linux
Mumble
Sway
Wayland
Switching to Wayland has it’s side-effects, one of which is the improved
security from X11 where applications can’t just randomly spy on each other at
any point.
This is both good news and bad news.
The good news:
- Applications can’t just randomly spy on each other.
The bad news:
- Things like global hot-keys in for example Mumble won’t work.
Back from complaining to actually solving the problem though.
Mumble does have a patch for a future release
So there’s the issue about Push to talk does not work in Wayland, this has
been followed up by a patch Add DBus calls to de/-activate push to talk. This
patch will land in the 1.4.0 release though while current stable is 1.3.4.
Read On →
2021-05-21
· 5 minutes read
·
NixOS
ZFS
Linux
Backup
Today my work day didn’t turn out the way I expected. It started like a
normal day, I woke up around the regular time, did my morning routine, sat at
my desk and started my work-issued laptop.
It booted up just fine, I connected it to my Ultrawide display, started going
through Slack and Email and catch up on some news while drinking my morning
tea and waking up.
Then after around an hour of work things started to hang up, most notably
Firefox totally froze up. I could launch a new terminal but not start htop
,
I had a htop
session in a terminal already because it’s part of what I
usually have running. So I went there to look.
Read On →
2021-02-19
· 3 minutes read
·
Sway
Wayland
Linux
Getting screen sharing to work on Wayland seems to be surprisingly hard.
Maybe it is compared to X11 that doesn’t require any additional setup at all.
To have working screen sharing on Sway you really need three components
installed and set up with correct environment variables.
These three components are:
pipewire
(I have version: 0.3.21)
xdg-desktop-portal
(I have version: 1.8.0)
xdg-desktop-portal-wlr
(I have version: 0.1.0)
These three components has to have systemd user services. You should be able
to see them in the list if you run systemctl --user
, just look for the
different programs name ending in .service
.
Read On →
2021-02-17
· 4 minutes read
·
NixOS
Nix
Linux
Sway
Wayland
X11
Like every other desktop Linux user for the past many years I’ve used X11. I
was on i3wm for quite some time until I was introduced to
Emacs X11 Window Manager which I used
exclusively for about 18 months, I’ve even held a talk about it.
But at some point it got too annoying, for example in multi monitor use cases.
At this point my first step was to go back to set up i3wm again. With that
set up I wanted to give SwayWM another attempt, it was
years ago I’ve checked it out before. I think my previous experience was when the
project was new. At that point (if I remember correctly), not even the window
decorations looked like the ones in i3wm.
Read On →
2020-06-27
· 4 minutes read
·
NixOS
Linux
Tmpfs
Impermanence
This is a follow-up post for my earlier post: NixOS ❄: tmpfs as root.
When you start to go down the route of setting up a “pure” system that is as
clean as you want it to be on each boot. You may start with the lazy route of
using a persistent partition for your home directory. But it never feels
quite right. But initially it’s so convenient to choose this path.
Read On →
2020-05-02
· 6 minutes read
·
NixOS
Linux
Tmpfs
Impermanence
This post covers both EFI and legacy boot setups.
One fairly unique property of NixOS is the ability to boot with only /boot
and /nix
. Nothing else is actually required. This supports doing all sorts
of weird things with your root file system.
One way is to do like Graham’s post “erase your darlings” describes and empty
your root file system each boot using ZFS snapshots. This way have some cool
things that you could do on top of his setup, such as doing snapshots when
it’s running and roll-back to empty on boot. That way you actually can go
back to recover files you lost but still have an empty state.
Read On →
2019-08-04
· 6 minutes read
·
NixOS
Linux
ZFS
So for a long time I have wanted to replace my file server, because it’s an
old HP Microserver that is really slow. And at the same time I have had this
beast of a desktop tower PC that I haven’t used with a Xeon and 32GiB ECC
memory that has just been turned off due to noise. The obvious solution is to
re-purpose that install and move it to a location where noise doesn’t matter,
e.g. the closet (a.k.a the server room) where the file server lives.
Read On →