Compare commits

...

3 commits

Author SHA1 Message Date
Daniel Bulant
8b4ec77e93
attempt to simplify and fix 2026-06-04 23:09:58 +02:00
Daniel Bulant
47b0bbcd1c
update 2026-06-04 21:47:23 +02:00
Daniel Bulant
03f7e499ef
fixup uwsm 2026-06-04 21:38:32 +02:00
3 changed files with 19 additions and 54 deletions

View file

@ -454,7 +454,7 @@ bind = CTRL+ALT,2,pass,^(com\.obsproject\.Studio)$
#windowrulev2=opacity 0.9,class:Code #windowrulev2=opacity 0.9,class:Code
#windowrulev2=opacity 0.9,class:Spotify #windowrulev2=opacity 0.9,class:Spotify
windowrulev2 = suppress_event maximize,class:^(vesktop)$ #windowrulev2 = suppress_event maximize,class:^(vesktop)$
#windowrulev2=workspace 10,class:Code # Open Code on secondary monitor #windowrulev2=workspace 10,class:Code # Open Code on secondary monitor

View file

@ -6,15 +6,10 @@
config, config,
pkgs, pkgs,
options, options,
nixpkgs-unstable,
lib, lib,
dms, dms,
... ...
}: }:
let
unstable-pkgs = nixpkgs-unstable.legacyPackages.x86_64-linux; # import nixpkgs-unstable.nixosModules.readOnlyPkgs {};
# unstable-pkgs = hyprland.inputs.nixpkgs.legacyPackages.${pkgs.stdenv.hostPlatform.system};
in
{ {
imports = [ imports = [
dms.nixosModules.greeter dms.nixosModules.greeter
@ -114,17 +109,13 @@ in
LC_TIME = "en_GB.UTF-8"; LC_TIME = "en_GB.UTF-8";
}; };
services.displayManager.sddm.enable = true; services.displayManager.sddm.enable = true;
services.displayManager.sddm.wayland.enable = true;
services.desktopManager.plasma6 = { services.desktopManager.plasma6 = {
enable = true; enable = true;
}; };
# services.desktopManager.gnome.enable = true; # services.desktopManager.gnome.enable = true;
services.xserver = { services.xserver.xkb = {
enable = false; layout = "us";
xkb = { variant = "";
layout = "us";
variant = "";
};
}; };
services.printing.enable = true; services.printing.enable = true;
@ -442,22 +433,6 @@ in
)) ))
]; ];
environment.variables =
let
qtVersions = with pkgs; [
qt5
qt6
];
in
{
QT_PLUGIN_PATH = map (qt: "/${qt.qtbase.qtPluginPrefix}") qtVersions;
QML2_IMPORT_PATH =
map (qt: "/${qt.qtbase.qtQmlPrefix}") qtVersions
++ (with unstable-pkgs; [
"${quickshell}/lib/qt-6/qml/"
]);
};
nixpkgs.config = { nixpkgs.config = {
allowUnfree = true; allowUnfree = true;
cudaSupport = true; cudaSupport = true;

View file

@ -26,7 +26,9 @@ let
allowUnfree = true; allowUnfree = true;
}; };
}; };
activitywatchPackages = pkgs.qt6Packages.callPackage "${pkgs.path}/pkgs/applications/office/activitywatch" { }; activitywatchPackages =
pkgs.qt6Packages.callPackage "${pkgs.path}/pkgs/applications/office/activitywatch"
{ };
activitywatchFixed = pkgs.activitywatch.override { activitywatchFixed = pkgs.activitywatch.override {
aw-server-rust = pkgs.aw-server-rust.overrideAttrs (oldAttrs: { aw-server-rust = pkgs.aw-server-rust.overrideAttrs (oldAttrs: {
env = (oldAttrs.env or { }) // { env = (oldAttrs.env or { }) // {
@ -36,31 +38,16 @@ let
}; };
}); });
}; };
codexbarWrapped = pkgs.writeShellApplication {
name = "codexbar"; vesktopWrapped = pkgs.vesktop.overrideAttrs (oldAttrs: {
runtimeInputs = [ pkgs.bubblewrap ]; nativeBuildInputs = (oldAttrs.nativeBuildInputs or [ ]) ++ [ pkgs.makeWrapper ];
text = '' postFixup = (oldAttrs.postFixup or "") + ''
exec bwrap \
--die-with-parent \
--bind / / \
--dev-bind /dev /dev \
--proc /proc \
--tmpfs /usr \
--dir /usr/bin \
--ro-bind ${pkgs.which}/bin/which /usr/bin/which \
-- \
${codexbar.packages.${pkgs.system}.default}/bin/codexbar "$@"
'';
};
vesktopWrapped = pkgs.symlinkJoin {
name = "vesktop-pipewire";
paths = [ pkgs.vesktop ];
nativeBuildInputs = [ pkgs.makeWrapper ];
postBuild = ''
wrapProgram $out/bin/vesktop \ wrapProgram $out/bin/vesktop \
--add-flags "--enable-features=WebRTCPipeWireCapturer,WaylandWindowDecorations" --prefix LD_LIBRARY_PATH : "${pkgs.lib.makeLibraryPath [ pkgs.pipewire ]}" \
--add-flags "--ozone-platform=wayland --enable-features=WebRTCPipeWireCapturer,WaylandWindowDecorations"
''; '';
}; });
# system = stdenv.hostPlatform.system; # system = stdenv.hostPlatform.system;
in in
{ {
@ -79,7 +66,7 @@ in
firefox firefox
unrar unrar
wine wine
codexbarWrapped codexbar.packages.${pkgs.system}.default
codex codex
jellyfin-desktop jellyfin-desktop
(kdePackages.qt6ct.overrideAttrs (oldAttrs: { (kdePackages.qt6ct.overrideAttrs (oldAttrs: {
@ -431,6 +418,9 @@ in
]; ];
zen-browser = { zen-browser = {
enable = true; enable = true;
extraPrefs = ''
user_pref("media.webrtc.camera.allow-pipewire", true);
'';
extraPrefsFiles = [ extraPrefsFiles = [
# (builtins.fetchurl { # (builtins.fetchurl {
# url = "https://raw.githubusercontent.com/MrOtherGuy/fx-autoconfig/master/program/config.js"; # url = "https://raw.githubusercontent.com/MrOtherGuy/fx-autoconfig/master/program/config.js";