feat(home:file-manager): add nemo initial configuration
This commit is contained in:
parent
dde1dca4f7
commit
65fb953361
7 changed files with 51 additions and 5 deletions
|
|
@ -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
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
5
home/modules/desktop/file-manager/default.nix
Normal file
5
home/modules/desktop/file-manager/default.nix
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
./nemo.nix
|
||||||
|
];
|
||||||
|
}
|
||||||
26
home/modules/desktop/file-manager/nemo.nix
Normal file
26
home/modules/desktop/file-manager/nemo.nix
Normal 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;
|
||||||
|
};
|
||||||
|
})
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
@ -11,5 +11,6 @@
|
||||||
./terminal.nix
|
./terminal.nix
|
||||||
./tools.nix
|
./tools.nix
|
||||||
./wayland.nix
|
./wayland.nix
|
||||||
|
./fileManager.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
11
home/options/desktop/fileManager.nix
Normal file
11
home/options/desktop/fileManager.nix
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
{ lib, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
inherit (lib) mkEnableOption;
|
||||||
|
in
|
||||||
|
|
||||||
|
{
|
||||||
|
options.ooknet.fileManager = {
|
||||||
|
nemo.enable = mkEnableOption "";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -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";
|
||||||
|
|
|
||||||
|
|
@ -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";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue