refactor: desktop default applications
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
let
|
||||
repo = config.repo;
|
||||
|
||||
mkPrimaryTerminal =
|
||||
mkTerminal =
|
||||
{
|
||||
desktopId,
|
||||
packageFor,
|
||||
@@ -16,7 +16,7 @@ let
|
||||
imports = [ terminalModule ];
|
||||
|
||||
config = {
|
||||
repo.terminal.primary = {
|
||||
meta.terminal = {
|
||||
inherit
|
||||
desktopId
|
||||
package
|
||||
@@ -155,13 +155,13 @@ in
|
||||
};
|
||||
};
|
||||
|
||||
flake.modules.homeManager.primary-terminal-foot = mkPrimaryTerminal {
|
||||
flake.modules.homeManager.primary-terminal-foot = mkTerminal {
|
||||
desktopId = "foot.desktop";
|
||||
packageFor = pkgs: pkgs.foot;
|
||||
terminalModule = config.flake.modules.homeManager.terminal-foot;
|
||||
};
|
||||
|
||||
flake.modules.homeManager.primary-terminal-kitty = mkPrimaryTerminal {
|
||||
flake.modules.homeManager.primary-terminal-kitty = mkTerminal {
|
||||
desktopId = "kitty.desktop";
|
||||
packageFor = pkgs: pkgs.kitty;
|
||||
terminalModule = config.flake.modules.homeManager.terminal-kitty;
|
||||
|
||||
Reference in New Issue
Block a user