feat(home:file-manager): add nemo initial configuration

This commit is contained in:
ooks-io 2024-06-23 23:18:20 +12:00
parent dde1dca4f7
commit 65fb953361
7 changed files with 51 additions and 5 deletions

View file

@ -1,14 +1,15 @@
{ {
imports = [ imports = [
./browser # done -- firefox still need: chrome, brave ./browser
./creative ./creative
./communication # only discord implemented ./communication
./media # done -- spotify gui still needs to be implemented ./media
./terminal # done -- wezterm still needs to be implemented ./terminal
./wayland # -- almost done, need to implement eww ./wayland
./productivity ./productivity
./gaming ./gaming
./security ./security
./tools ./tools
./file-manager
]; ];
} }

View file

@ -0,0 +1,5 @@
{
imports = [
./nemo.nix
];
}

View file

@ -0,0 +1,26 @@
{ lib, config, pkgs, ... }:
let
inherit (lib) mkIf mkMerge;
cfg = config.ooknet.fileManager.nemo;
fileManager = config.ooknet.desktop.fileManager;
nemoMime = {
"inode/directory" = ["nemo.desktop"];
};
in
{
config = mkMerge [
(mkIf (cfg.enable || fileManager == "nemo") {
home.packages = [ pkgs.cinnamon.nemo-with-extensions ];
})
(mkIf (fileManager == "nemo") {
ooknet.binds.fileManager = "nemo";
xdg.mimeApps = {
association.added = nemoMime;
defaultApplication = nemoMime;
};
})
];
}

View file

@ -11,5 +11,6 @@
./terminal.nix ./terminal.nix
./tools.nix ./tools.nix
./wayland.nix ./wayland.nix
./fileManager.nix
]; ];
} }

View file

@ -0,0 +1,11 @@
{ lib, ... }:
let
inherit (lib) mkEnableOption;
in
{
options.ooknet.fileManager = {
nemo.enable = mkEnableOption "";
};
}

View file

@ -16,6 +16,7 @@ in
notes = "obsidian"; notes = "obsidian";
pdf = "zathura"; pdf = "zathura";
discord = "vesktop"; discord = "vesktop";
fileManager = "nemo";
}; };
console = { console = {
editor = "helix"; editor = "helix";

View file

@ -16,6 +16,7 @@ in
notes = "obsidian"; notes = "obsidian";
pdf = "zathura"; pdf = "zathura";
discord = "vesktop"; discord = "vesktop";
fileManager = "nemo";
}; };
console = { console = {
editor = "helix"; editor = "helix";