Add Boxxy and rewrite ~/.mozilla to XDG_DATA_HOME

main
Carsten Kragelund 2023-02-12 00:42:54 +01:00
parent bc3d0419d1
commit 2157188bc8
Signed by: nyx
GPG Key ID: CADDADEEC9F753C0
6 changed files with 59 additions and 2 deletions

@ -4,7 +4,7 @@
imports = [ ];
environment.systemPackages = with pkgs; [
(firefox-devedition-bin.override { wmClass = "firefox-aurora"; })
#(firefox-devedition-bin.override { wmClass = "firefox-aurora"; })
dconf
git
git-lfs

@ -4,7 +4,7 @@
imports = [ ];
environment.systemPackages = with pkgs; [
(firefox-devedition-bin.override { wmClass = "firefox-aurora"; })
#(firefox-devedition-bin.override { wmClass = "firefox-aurora"; })
dconf
git
git-lfs

@ -0,0 +1,21 @@
{ config, lib, pkgs, ... }:
{
config.xdg.configFile = {
"boxxy/boxxy.yaml".text = builtins.toJSON {
rules = [
{
name = "Test tmux";
target = "~/.tmux.conf";
rewrite = "~/.cache/tmux.conf";
mode = "file";
}
{
name = ".mozilla Directory";
target = "~/.mozilla";
rewrite = "~/.local/share/mozilla";
mode = "directory";
}
];
};
};
}

@ -6,5 +6,6 @@
./gnome.nix
./ssh.nix
./xdg.nix
./boxxy.nix
];
}

@ -0,0 +1,21 @@
{ rustPlatform, fetchFromGitHub, lib, ... }:
rustPlatform.buildRustPackage rec {
pname = "boxxy";
version = "0.2.7";
src = fetchFromGitHub {
repo = pname;
owner = "nyxkrage";
rev = "e660a79bcf2aba361e002cdf8845ca1444bb6ad5";
sha256 = "sha256-LGLkGJGKDcda71TWjzn9Q8kLqTyxGvPaPBJtirV+xDc=";
};
cargoSha256 = "sha256-Psc9qErqi3aangNowXxhkEXphFCR7pp+DKTKtk6tMo0=";
meta = with lib; {
description = "boxxy puts bad Linux applications in a box with only their files.";
homepage = "https://github.com/queer/boxxy";
license = licenses.mit;
maintainers = [ maintainers.nyxkrage ];
};
}

@ -16,6 +16,19 @@
services.lorri.enable = true;
home.packages = with pkgs; [
(let
boxedFirefox = writeShellScriptBin "firefox-devedition" ''
exec boxxy ${firefox-devedition-bin}/bin/firefox-devedition
'';
in
pkgs.symlinkJoin {
name = "firefox-devedition-bin";
paths = [
boxedFirefox
(firefox-devedition-bin.override { wmClass = "firefox-aurora"; })
];
})
catppuccin-gtk
bat
(discord.override { withOpenASAR = true; })
@ -35,6 +48,7 @@
# Local
(callPackage ./rec-mono-nyx.nix {})
(callPackage ./boxxy.nix {})
# Rust
llvmPackages_latest.lld