From 31c316d19cd974bb81a5d6de62142ff24db1c78e Mon Sep 17 00:00:00 2001 From: triethyl Date: Tue, 2 Sep 2025 10:48:21 -0400 Subject: reorganized directory structure --- modules/user/default-apps.nix | 49 ------------------------------------------- 1 file changed, 49 deletions(-) delete mode 100644 modules/user/default-apps.nix (limited to 'modules/user/default-apps.nix') diff --git a/modules/user/default-apps.nix b/modules/user/default-apps.nix deleted file mode 100644 index 7ec2b16..0000000 --- a/modules/user/default-apps.nix +++ /dev/null @@ -1,49 +0,0 @@ -{ config, lib, ... }: -let - cfg = config.default-applications; - mkCommand = name: lib.mkOption { - type = lib.types.str; - default = ""; - description = "The default ${name}."; - }; - mkDesktopFile = name: lib.mkOption { - type = lib.types.str; - default = ""; - description = "The default ${name}'s .desktop file"; - }; -in { - options.default-applications = { - web-browser = { - command = mkCommand "web browser"; - desktop-file = mkDesktopFile "web browser"; - }; - text-editor = { - command = mkCommand "text editor"; - desktop-file = mkDesktopFile "text editor"; - }; - image-viewer = { - command = mkCommand "image viewer"; - desktop-file = mkDesktopFile "image viewer"; - }; - video-viewer = { - command = mkCommand "video viewer"; - desktop-file = mkDesktopFile "video viewer"; - }; - terminal-emulator = { - command = mkCommand "terminal emulator"; - runTuiCommand = mkCommand "terminal emulator run tui command"; - runCliCommand = mkCommand "terminal emulator run cli command"; - desktop-file = mkDesktopFile "terminal emulator"; - }; - }; - config = { - xdg.mimeApps = { - enable = true; - defaultApplications = { - "text/plain" = [ cfg.text-editor.desktop-file ]; - "text/html" = [ cfg.text-editor.desktop-file ]; - "text/nix" = [ cfg.text-editor.desktop-file ]; - }; - }; - }; -} -- cgit v1.2.3