niri and session vars

This commit is contained in:
Matt Nish-Lapidus 2025-04-09 15:06:48 -04:00
parent be096e9513
commit 6a22db2f12
5 changed files with 27 additions and 49 deletions

60
flake.lock generated
View file

@ -70,11 +70,11 @@
"nixpkgs-stable": "nixpkgs-stable" "nixpkgs-stable": "nixpkgs-stable"
}, },
"locked": { "locked": {
"lastModified": 1744129624, "lastModified": 1744218590,
"narHash": "sha256-4l8Sy5bb4qWruXO9XNGiDlhan63hHPH1PWdFzh4wzQE=", "narHash": "sha256-C4fQbqgiRN5hpM4oUnvm/xYAPXeT1tNvMqVKwQU4iEI=",
"owner": "nix-community", "owner": "nix-community",
"repo": "emacs-overlay", "repo": "emacs-overlay",
"rev": "1a0e36d797582e1a3fc82a36f151ef3d9409fd3c", "rev": "8d01f801846716f6ec32547c32d3f09a31ef3f05",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -354,15 +354,14 @@
"inputs": { "inputs": {
"nixpkgs": [ "nixpkgs": [
"nixpkgs" "nixpkgs"
], ]
"treefmt-nix": "treefmt-nix"
}, },
"locked": { "locked": {
"lastModified": 1744127405, "lastModified": 1744208565,
"narHash": "sha256-Cqkmsb3CDcUREjszRe2/qkvztFzEujkaaqV5/nqfdlk=", "narHash": "sha256-vG3JJOar/r8ognz7wuwMtOJ8Knu1MMlOzHB1N6R2MbY=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "fefb6ae1b301b620a81645789e19945092b079da", "rev": "542efdf2dfac351498f534eb71671525b9bd45ed",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -745,11 +744,11 @@
"xwayland-satellite-unstable": "xwayland-satellite-unstable" "xwayland-satellite-unstable": "xwayland-satellite-unstable"
}, },
"locked": { "locked": {
"lastModified": 1744068309, "lastModified": 1744170273,
"narHash": "sha256-4RAoQhztUI+M3XKzINEozxXWom4HOr+rvVfYaHk1Brw=", "narHash": "sha256-r4Nu/TlnNGsNDLy/lOggGewVupLC2T1sQqmbbNv4yHw=",
"owner": "sodiboo", "owner": "sodiboo",
"repo": "niri-flake", "repo": "niri-flake",
"rev": "b1beb4d118baf1a31c9744ab58402ff9eeb6a333", "rev": "94b2a1a84883e45d97e07b415e8785938d5a5da7",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -1014,11 +1013,11 @@
}, },
"nixpkgs-stable_4": { "nixpkgs-stable_4": {
"locked": { "locked": {
"lastModified": 1743975612, "lastModified": 1744168086,
"narHash": "sha256-o4FjFOUmjSRMK7dn0TFdAT0RRWUWD+WsspPHa+qEQT8=", "narHash": "sha256-S9M4HddBCxbbX1CKSyDYgZ8NCVyHcbKnBfoUXeRu2jQ=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "a880f49904d68b5e53338d1e8c7bf80f59903928", "rev": "60e405b241edb6f0573f3d9f944617fe33ac4a73",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -1076,11 +1075,11 @@
}, },
"nixpkgs_5": { "nixpkgs_5": {
"locked": { "locked": {
"lastModified": 1743964447, "lastModified": 1744098102,
"narHash": "sha256-nEo1t3Q0F+0jQ36HJfbJtiRU4OI+/0jX/iITURKe3EE=", "narHash": "sha256-tzCdyIJj9AjysC3OuKA+tMD/kDEDAF9mICPDU7ix0JA=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "063dece00c5a77e4a0ea24e5e5a5bd75232806f8", "rev": "c8cd81426f45942bb2906d5ed2fe21d2f19d95b7",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -1410,27 +1409,6 @@
"type": "github" "type": "github"
} }
}, },
"treefmt-nix": {
"inputs": {
"nixpkgs": [
"home-manager",
"nixpkgs"
]
},
"locked": {
"lastModified": 1743748085,
"narHash": "sha256-uhjnlaVTWo5iD3LXics1rp9gaKgDRQj6660+gbUU3cE=",
"owner": "numtide",
"repo": "treefmt-nix",
"rev": "815e4121d6a5d504c0f96e5be2dd7f871e4fd99d",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "treefmt-nix",
"type": "github"
}
},
"uv2nix": { "uv2nix": {
"inputs": { "inputs": {
"nixpkgs": [ "nixpkgs": [
@ -1584,11 +1562,11 @@
"rust-overlay": "rust-overlay_3" "rust-overlay": "rust-overlay_3"
}, },
"locked": { "locked": {
"lastModified": 1744112829, "lastModified": 1744215954,
"narHash": "sha256-oxO7nT4AZJilxA2DliYk57NETHu78xQ8nFdV+UwyKHE=", "narHash": "sha256-7hynNio9B/AiOYK0/yilaq3QwJIeqWhGQRVn5j1f2XQ=",
"owner": "sxyazi", "owner": "sxyazi",
"repo": "yazi", "repo": "yazi",
"rev": "99ea3b74c4260a724b43af812df0f68ef59395b7", "rev": "7cc250180f61e0e4e8a5d0aa0271d31c3fc797b7",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -151,11 +151,13 @@
startServices = "sd-switch"; # auto reload services when home is rebuilt startServices = "sd-switch"; # auto reload services when home is rebuilt
sessionVariables = { sessionVariables = {
GSK_RENDERER = "ngl"; GSK_RENDERER = "ngl";
QT_QPA_PLATFORM = "xcb";
MOZ_ENABLE_WAYLAND = 1; MOZ_ENABLE_WAYLAND = 1;
XCURSOR_SIZE = 32; XCURSOR_SIZE = 32;
XCURSOR_THEME = "Bibata-Modern-Classic"; XCURSOR_THEME = "Bibata-Modern-Classic";
DISPLAY = ":0"; DISPLAY = ":0";
WAYLAND_DISPLAY="wayland-1"; WAYLAND_DISPLAY="wayland-1";
ELECTRON_OZONE_PLATFORM_HINT = "auto";
}; };
}; };

View file

@ -13,7 +13,6 @@ in
programs = { programs = {
niri = { niri = {
settings = { settings = {
# hotkey-overlay.skip-at-startup = true;
screenshot-path = "~/Pictures/Screenshots/Screenshot from %Y-%m-%d %H-%M-%S.png"; screenshot-path = "~/Pictures/Screenshots/Screenshot from %Y-%m-%d %H-%M-%S.png";
prefer-no-csd = true; prefer-no-csd = true;
@ -93,12 +92,8 @@ in
environment = { environment = {
DISPLAY = ":0"; DISPLAY = ":0";
QT_QPA_PLATFORM = "xcb";
XDG_CURRENT_DESKTOP = "niri"; XDG_CURRENT_DESKTOP = "niri";
XDG_SESSION_TYPE = "wayland"; XDG_SESSION_TYPE = "wayland";
MOZ_ENABLE_WAYLAND = "1";
ELECTRON_OZONE_PLATFORM_HINT = "auto";
EDITOR = "emacsclient -r -n";
}; };
cursor = { cursor = {

View file

@ -78,6 +78,9 @@
]; ];
programs = { programs = {
bash = {
enable = true;
};
nix-index = { nix-index = {
enable = true; enable = true;
enableFishIntegration = true; enableFishIntegration = true;

View file

@ -6,11 +6,11 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "bitwig-studio5-3-unwrapped"; pname = "bitwig-studio5-3-unwrapped";
version = "5.3"; version = "5.3.5";
src = fetchurl { src = fetchurl {
url = "https://downloads-secure.bitwig.com/5.3.1/bitwig-studio-5.3.1.deb?__token__=st=1740197111.0~exp=1740197711.0~hmac=2e5de6388d4f0df89ed9cbbfa8735ff21c6792a818f061eccd8bbe54438a61cf&source_url=/dl/Bitwig%20Studio/5.3.1/installer_linux/"; url = "https://downloads-secure.bitwig.com/5.3.5/bitwig-studio-5.3.5.deb?__token__=st=1744219621.0~exp=1744220221.0~hmac=26cea3c7a55d59f7e0748e41ac78f7874c17edd82aa2fc7b2b43a041887cd13e&source_url=/dl/Bitwig%20Studio/5.3.5/installer_linux/";
sha256 = "sha256-mxodFCu4SDzofnoZZZ7TPDUIrRc3UJt8TuEBwDOo2wQ="; sha256 = "sha256-dfEWOQTZVMUb6v+u2wQlFgTXupokFTjWgKKA6W/Rrzc=";
}; };
nativeBuildInputs = [ dpkg makeWrapper wrapGAppsHook ]; nativeBuildInputs = [ dpkg makeWrapper wrapGAppsHook ];