2022-09-04 02:54:15 -04:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
let
|
2022-10-13 22:13:43 -04:00
|
|
|
inherit (import ../modules/lib.nix {
|
|
|
|
inherit lib;
|
|
|
|
inherit pkgs;
|
|
|
|
})
|
|
|
|
nLib;
|
|
|
|
in with lib;
|
|
|
|
with nLib; {
|
2022-09-04 02:54:15 -04:00
|
|
|
options = {
|
|
|
|
nathan = {
|
|
|
|
programs = {
|
|
|
|
util = {
|
|
|
|
# Core utilites
|
|
|
|
core = mkEnableOptionT "core";
|
|
|
|
# Ssh configuration, enabled by default
|
|
|
|
ssh = mkEnableOptionT "ssh";
|
|
|
|
# Fish configuration, enabled by default
|
|
|
|
fish = mkEnableOptionT "fish";
|
|
|
|
# Git configuration, enabled by default
|
|
|
|
git = {
|
|
|
|
enable = mkEnableOptionT "git";
|
2022-10-13 22:13:43 -04:00
|
|
|
gpgSign =
|
|
|
|
mkDefaultOption "git signatures" config.nathan.config.isDesktop;
|
2022-09-04 02:54:15 -04:00
|
|
|
};
|
|
|
|
# Bat configuration, enabled by default
|
|
|
|
bat = mkEnableOptionT "bat";
|
|
|
|
# JSON Utilities, enabled by default
|
|
|
|
json = mkEnableOptionT "json";
|
|
|
|
# Productivity application
|
2022-10-13 22:13:43 -04:00
|
|
|
productivity = mkDefaultOption "Productivity applications"
|
|
|
|
config.nathan.config.isDesktop;
|
2022-09-04 02:54:15 -04:00
|
|
|
};
|
|
|
|
# Development applications, enabled by default on desktop
|
|
|
|
devel = {
|
2022-10-13 22:13:43 -04:00
|
|
|
core = mkDefaultOption "Core Development Utilites"
|
|
|
|
config.nathan.config.isDesktop;
|
|
|
|
rust = mkDefaultOption "Rust Development Utilites"
|
|
|
|
config.nathan.config.isDesktop;
|
|
|
|
python = mkDefaultOption "Python Development Utilites"
|
|
|
|
config.nathan.config.isDesktop;
|
|
|
|
js = mkDefaultOption "JavaScript/TypeScript Development Utilites"
|
|
|
|
config.nathan.config.isDesktop;
|
|
|
|
raku = mkDefaultOption "Raku Development Utilites"
|
|
|
|
config.nathan.config.isDesktop;
|
2022-10-23 09:52:34 -04:00
|
|
|
idris2 = mkDefaultOption "Idris 2 Development Utilites"
|
|
|
|
config.nathan.config.isDesktop;
|
2022-10-31 11:53:04 -04:00
|
|
|
haskell = mkDefaultOption "Haskell Development Utilites"
|
|
|
|
config.nathan.config.isDesktop;
|
2022-09-04 02:54:15 -04:00
|
|
|
};
|
|
|
|
# Emacs, enabled by default on desktop
|
|
|
|
emacs = {
|
|
|
|
enable = mkDefaultOption "Emacs" config.nathan.config.isDesktop;
|
2022-10-13 22:13:43 -04:00
|
|
|
service =
|
|
|
|
mkDefaultOption "Emacs Service" config.nathan.config.isDesktop;
|
|
|
|
package = mkOption { description = "Emacs package to use"; };
|
2022-09-04 02:54:15 -04:00
|
|
|
};
|
|
|
|
};
|
|
|
|
# General configuration options
|
|
|
|
config = {
|
|
|
|
# Is this system a desktop?
|
|
|
|
# false by default
|
|
|
|
isDesktop = mkEnableOption "Desktop specific settings";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|