diff --git a/TODO.MD b/TODO.MD index d4875e4..61b99f3 100644 --- a/TODO.MD +++ b/TODO.MD @@ -37,4 +37,16 @@ [ x ] Enable plymouth on boot [ x ] Add pedro plymouth theme [ ] Optimize kernelParams - [ ] Fix plymouth theme freezes and is not that smooth on boot. \ No newline at end of file + [ ] Fix plymouth theme freezes and is not that smooth on boot. +[ ] Fixing icons missing in titlebar when as user + [ ] Fixing icons missing in titlebar for office apps -> report to upstream + [ ] Fixing icons missing in titlebar for virt-manager -> report to upstream + [ x ] Fixing icons missing in titlebar for most apps +[ ] Fixing Gparted unlunchable from luncher + [ x ] Trying to fix by mysef + [ x ] Adding to sudoers file + [ x ] Adding sudo to command of launcher + [ ] report to upstream +[ ] Adding "Open in VSCode" contexte menu + [ ] In Dolphin + [ ] In desktop \ No newline at end of file diff --git a/flake.nix b/flake.nix index 4ad1d0c..664a455 100644 --- a/flake.nix +++ b/flake.nix @@ -109,7 +109,7 @@ tuis.enable = true; }; sys = { - label = "V.2.2"; + label = "V.2.2.2"; tags = []; version = nixos-version; main-user = "matthieu"; diff --git a/progs/desktop/plasma.nix b/progs/desktop/plasma.nix index ffdf20a..7b43ece 100644 --- a/progs/desktop/plasma.nix +++ b/progs/desktop/plasma.nix @@ -29,10 +29,66 @@ in (tools.fullModule rec { }; window-rules = [ (tools.ifExists config "config.progs.editors.vscode" { - description = "vscode-desktop-file"; + description = "Fix duplicate VS Code entry in taskbar"; match.window-class = "code code"; - apply.desktopfile = "/run/current-system/etc/profiles/per-user/matthieu/share/applications/code.desktop"; # TODO: make this dynamic + apply.desktopfile = "code"; }) + (tools.ifExists config "config.progs.misc.ledger" + { + description = "Fix icon in titlebar for Ledger Live"; + match.window-class = "ledger-live-desktop Ledger Wallet"; + apply.desktopfile = "ledger-live-desktop"; + }) + # TODO : REPORT BUG to OFFICE = doesnt work on creation, work when forced after beeing lunched + (tools.ifExists config "config.progs.office.libreoffice" + { + description = "Fix icon in titlebar for libreoffice startcenter"; + match.window-class = "soffice.bin libreoffice-startcenter"; + apply.desktopfile = "startcenter"; + }) + (tools.ifExists config "config.progs.office.libreoffice" + { + description = "Fix icon in titlebar for libreoffice writer"; + match.window-class = "soffice.bin libreoffice-writer"; + apply.desktopfile = "writer"; + }) + (tools.ifExists config "config.progs.office.libreoffice" + { + description = "Fix icon in titlebar for libreoffice draw"; + match.window-class = "soffice.bin libreoffice-draw"; + apply.desktopfile = "draw"; + }) + (tools.ifExists config "config.progs.office.libreoffice" + { + description = "Fix icon in titlebar for libreoffice calc"; + match.window-class = "soffice.bin libreoffice-calc"; + apply.desktopfile = "calc"; + }) + (tools.ifExists config "config.progs.office.libreoffice" + { + description = "Fix icon in titlebar for libreoffice base"; + match.window-class = "soffice.bin libreoffice-base"; + apply.desktopfile = "base"; + }) + (tools.ifExists config "config.progs.office.libreoffice" + { + description = "Fix icon in titlebar for libreoffice math"; + match.window-class = "soffice.bin libreoffice-math"; + apply.desktopfile = "math"; + }) + (tools.ifExists config "config.progs.office.libreoffice" + { + description = "Fix icon in titlebar for libreoffice impress"; + match.window-class = "soffice.bin libreoffice-impress"; + apply.desktopfile = "impress"; + }) + # TODO : REPORT BUG to virt-manager = doesnt work on creation, work when forced after beeing lunched + (tools.ifExists config "config.progs.dev.virtualization.virt-manager" + { + description = "Fix icon in titlebar for virt-manager"; + match.window-class = "python3.13 .virt-manager-wrapped"; + apply.desktopfile = "virt-manager"; + }) ]; shortcuts = { "services/com.mitchellh.ghostty.desktop" = { diff --git a/progs/dev/boot/gparted.nix b/progs/dev/boot/gparted.nix index 1209ccf..8b8ccb5 100644 --- a/progs/dev/boot/gparted.nix +++ b/progs/dev/boot/gparted.nix @@ -15,7 +15,6 @@ enable = lib.mkEnableOption "Enables ${name} program and related settings."; }; }; - # TODO : fix the fact that gparted needs root to run and thus cant be opened from rofi or similar launchers in (tools.fullModule rec { inherit (moduleParams) config lib pkgs-list parentPathAsList tools; inherit (moduleParams) name togglable subfolder main-repo branch extras imports specialImports options settings; @@ -24,5 +23,41 @@ in (tools.fullModule rec { home.packages = with packages; [ gparted ]; + # NOTE : doesnt work, needs manual file modification + # xdg.desktopEntries.gparted = { + # name = "GParted**"; + # categories = ["GNOME" "System" "Filesystem"]; + # comment = "Create, reorganize, and delete partitions"; + # exec = "sudo ${packages.gparted}/bin/gparted %f"; + # }; + # NOTE : very Hacky workaround + home.activation = let + store_path = builtins.replaceStrings ["/"] ["\\/"] "${packages.gparted}"; + gparted_path = "${store_path}\\/bin\\/gparted"; + in { + ${name} = lib.mkAfter '' + sed -i 's/Exec=.*/Exec=sudo ${gparted_path} %f/' /home/matthieu/.local/share/applications/gparted.desktop + ''; + }; + }; + System = { + security.sudo = { + enable = true; + execWheelOnly = true; + wheelNeedsPassword = true; + extraRules = [ + { + users = ["%wheel"]; + host = "ALL"; + runAs = "ALL:ALL"; + commands = [ + { + command = "${packages.gparted}/bin/gparted"; + options = ["NOPASSWD"]; + } + ]; + } + ]; + }; }; }) diff --git a/sys/hardware.nix b/sys/hardware.nix index 6285769..e7e3be3 100644 --- a/sys/hardware.nix +++ b/sys/hardware.nix @@ -23,7 +23,7 @@ enable = lib.mkEnableOption "Enables ${name} related settings."; }; settings = { - nvidia.enable = true; # TODO FIX : module to fix once a stable and working nvidia version is available + nvidia.enable = true; printer.enable = true; sound.enable = true; bluetooth.enable = true; diff --git a/sys/hardware/nvidia.nix b/sys/hardware/nvidia.nix index fe5f1e6..312a09c 100644 --- a/sys/hardware/nvidia.nix +++ b/sys/hardware/nvidia.nix @@ -1,4 +1,3 @@ -# TODO : FIX !!! { config, lib,