mirror of
https://github.com/kmein/niveum
synced 2026-03-20 12:01:06 +01:00
modularize
This commit is contained in:
39
modules/constants.nix
Normal file
39
modules/constants.nix
Normal file
@@ -0,0 +1,39 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
with lib;
|
||||
with import <dot/theme.nix>;
|
||||
let
|
||||
stringOption = mkOption { type = types.string; };
|
||||
themeOption = mkOption {
|
||||
type = types.submodule {
|
||||
options = {
|
||||
name = mkOption { type = types.string; };
|
||||
package = mkOption { type = types.package; };
|
||||
};
|
||||
};
|
||||
};
|
||||
in {
|
||||
options.niveum = {
|
||||
applications = {
|
||||
terminal = stringOption;
|
||||
browser = stringOption;
|
||||
fileManager = stringOption;
|
||||
};
|
||||
|
||||
user = {
|
||||
github = stringOption;
|
||||
name = stringOption;
|
||||
email = stringOption;
|
||||
};
|
||||
|
||||
ignore = mkOption {
|
||||
type = types.listOf types.string;
|
||||
default = [ "*~" ".stack-work/" "__pycache__/" ".mypy_cache/" "*.py[co]" "*.o" "*.hi" "*.aux" "*.bbl" "*.bcf" "*.blg" "*.fdb_latexmk" "*.fls" "*.out" "*.run.xml" "*.toc" "*.bbl" "*.class" "*.dyn_hi" "*.dyn_o" "dist/" ];
|
||||
};
|
||||
|
||||
theme = {
|
||||
gtk = themeOption;
|
||||
icon = themeOption;
|
||||
cursor = themeOption;
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user