5f7e9cada5
Refactor `modules/desktop/options.nix` to improve code readability by expanding the `optPath` list definition and simplifying the `wisdomSimpleSlice` configuration logic. Also apply minor style fixes to `modules/wisdom/filebrowsers/nemo.nix` to ensure consistent spacing within list definitions.
27 lines
716 B
Nix
27 lines
716 B
Nix
{ ... }: {
|
|
flake.homeManagerModules.wisdomFilebrowsersNemo =
|
|
{ config, lib, pkgs, ... }:
|
|
let
|
|
root = config.chiasson.home;
|
|
cfg = root.filebrowsers.nemo;
|
|
in
|
|
{
|
|
options.chiasson.home.filebrowsers.nemo.enable = lib.mkEnableOption ''
|
|
Nemo file manager (GTK). Colors come from DMS matugen via GTK settings — no KDE/Qt bridge needed.
|
|
'' // {
|
|
default = true;
|
|
};
|
|
|
|
config = lib.mkIf (root.enable && cfg.enable) {
|
|
home.packages = [ pkgs.nemo ];
|
|
|
|
xdg.mimeApps = {
|
|
enable = lib.mkDefault true;
|
|
defaultApplications = {
|
|
"inode/directory" = lib.mkDefault "nemo.desktop";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|