~ruther/nixos-config

ref: 6904cf1761334d033556f106c82d79b48e6657f4 nixos-config/home/modules/home-config.nix -rw-r--r-- 704 bytes
6904cf17 — Frantisek Bohacek refactor: modularize the configuration 1 year, 1 day ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{ config, pkgs, lib, ... }:

{
  options = {
    home-config = {
      defaultTerminal = lib.mkPackageOption pkgs "kitty" {};
      defaultTerminalExe = lib.mkOption {
        type = lib.types.str;
        readOnly = true;
      };

      defaultFont = lib.mkOption {
        type = lib.types.str;
        default = "FiraCode Nerd Font Mono";
      };

      startup = {
        apps = lib.mkOption {
          type = lib.types.listOf lib.types.str;
          default = [];
          description = ''
            Which apps to start when entering GUI
          '';
        };
      };
    };
  };

  config = {
    home-config.defaultTerminalExe = (lib.getExe config.home-config.defaultTerminal);
  };
}
Do not follow this link