Skip to content

Commit

Permalink
install freetube with nix
Browse files Browse the repository at this point in the history
  • Loading branch information
gzagatti committed Jan 5, 2025
1 parent 3a4f270 commit 790a3dc
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
12 changes: 12 additions & 0 deletions apparmor.d/nix-electron
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# this AppArmor profile needs to be added to /etc/apparmor.d/ and be owned by
# root in order to allow SUID sandbox helper to run, otherwise electron apps
# installed with nix cannot be started
# see: https://github.com/NixOS/nixpkgs/issues/121694
# see: https://discourse.ubuntu.com/t/ubuntu-24-04-lts-noble-numbat-release-notes/39890#p-99950-unprivileged-user-namespace-restrictions
abi <abi/4.0>,

include <tunables/global>

profile nix-electron /nix/store/*-electron-*/**/* flags=(default_allow) {
userns,
}
7 changes: 7 additions & 0 deletions nix/home-manager/home.nix
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,13 @@ in
# media
(nixGuiWrap { pkg = pkgs.spotify; })
(nixGuiWrap { pkg = pkgs.vlc; })
# the AppArmor profile ./apparmor.d/nix-electron needs to be added to
# /etc/apparmor.d/ and be owned by root in order to allow SUID sandbox
# helper to run, otherwise electron apps installed with nix cannot be
# started
# see: https://github.com/NixOS/nixpkgs/issues/121694
# see: https://discourse.ubuntu.com/t/ubuntu-24-04-lts-noble-numbat-release-notes/39890#p-99950-unprivileged-user-namespace-restrictions
(nixGuiWrap { pkg = pkgs.freetube; })

# messaging
pkgs.weechat
Expand Down

0 comments on commit 790a3dc

Please sign in to comment.