refactor(modules): split monolithic system/desktop config
This commit is contained in:
parent
c299acb87d
commit
febdf2702c
13 changed files with 249 additions and 209 deletions
48
modules/desktop/desktop-entries.nix
Normal file
48
modules/desktop/desktop-entries.nix
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
{ lib, pkgs, ... }:
|
||||
|
||||
let
|
||||
thunarDesktopOverride = pkgs.makeDesktopItem {
|
||||
name = "thunar";
|
||||
desktopName = "Files";
|
||||
genericName = "File Manager";
|
||||
tryExec = "thunar";
|
||||
exec = "thunar %U";
|
||||
icon = "org.xfce.thunar";
|
||||
categories = [
|
||||
"Utility"
|
||||
"FileManager"
|
||||
];
|
||||
mimeTypes = [ "inode/directory" ];
|
||||
keywords = [
|
||||
"folder"
|
||||
"manager"
|
||||
"explorer"
|
||||
"files"
|
||||
];
|
||||
startupNotify = true;
|
||||
startupWMClass = "Thunar";
|
||||
terminal = false;
|
||||
comment = "Browse files";
|
||||
};
|
||||
|
||||
ghosttyDesktopOverride = pkgs.makeDesktopItem {
|
||||
name = "com.mitchellh.ghostty";
|
||||
desktopName = "Terminal";
|
||||
genericName = "Terminal Emulator";
|
||||
exec = "ghostty";
|
||||
icon = "com.mitchellh.ghostty";
|
||||
categories = [
|
||||
"System"
|
||||
"TerminalEmulator"
|
||||
"Utility"
|
||||
];
|
||||
terminal = false;
|
||||
comment = "Fast GPU-accelerated terminal";
|
||||
};
|
||||
in
|
||||
{
|
||||
environment.systemPackages = lib.mkAfter [
|
||||
(lib.hiPrio thunarDesktopOverride)
|
||||
(lib.hiPrio ghosttyDesktopOverride)
|
||||
];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue