Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion TODO.MD
Original file line number Diff line number Diff line change
Expand Up @@ -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.
[ ] 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
2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@
tuis.enable = true;
};
sys = {
label = "V.2.2";
label = "V.2.2.2";
tags = [];
version = nixos-version;
main-user = "matthieu";
Expand Down
60 changes: 58 additions & 2 deletions progs/desktop/plasma.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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" = {
Expand Down
37 changes: 36 additions & 1 deletion progs/dev/boot/gparted.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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"];
}
];
}
];
};
};
})
2 changes: 1 addition & 1 deletion sys/hardware.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 0 additions & 1 deletion sys/hardware/nvidia.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# TODO : FIX !!!
{
config,
lib,
Expand Down