13f35677be
Move Home Manager module defaults from a centralized `desktop-home-defaults.nix` file into their respective `wisdom` slices. This change aligns with the updated documentation regarding module ownership, where defaults live with the option that owns them rather than in a shared defaults file. Additionally, update `docs/conventions.md` to reflect this new pattern for defining `mkEnableOption` defaults and move base git/encryption configurations into the core `wisdom` module. - Delete `modules/hosts/desktop-home-defaults.nix` - Update `modules/wisdom/default.nix` to include shared git and package defaults - Add `default = ...` to `mkEnableOption` in various `wisdom` modules - Update `docs/conventions.md` with new HM slice guidelines
27 lines
714 B
Nix
27 lines
714 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";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|