mirror of
https://github.com/kmein/niveum
synced 2026-03-17 18:41:09 +01:00
kropsify some more
This commit is contained in:
44
modules/defaultApplications.nix
Normal file
44
modules/defaultApplications.nix
Normal file
@@ -0,0 +1,44 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
with lib;
|
||||
with import <dot/theme.nix>;
|
||||
let
|
||||
unstable = import <nixos-unstable> {};
|
||||
stringOption = def: mkOption { type = types.string; default = def; };
|
||||
themeOption = def: mkOption {
|
||||
type = types.submodule {
|
||||
options = {
|
||||
name = mkOption { type = types.string; default = def.name; };
|
||||
package = mkOption { type = types.package; default = def.package; };
|
||||
};
|
||||
};
|
||||
default = def;
|
||||
};
|
||||
in {
|
||||
options.defaultApplications = mapAttrs (const stringOption) rec {
|
||||
terminal = "${pkgs.rxvt_unicode-with-plugins}/bin/urxvtc";
|
||||
browser = "${pkgs.chromium}/bin/chromium";
|
||||
fileManager = "${terminal} -e ${pkgs.ranger}/bin/ranger";
|
||||
# locker = "${pkgs.i3lock}/bin/i3lock -u -c ${strings.removePrefix "#" colorScheme.background}";
|
||||
locker = "${pkgs.lightlocker}/bin/light-locker-command -l";
|
||||
};
|
||||
|
||||
options.constants = {
|
||||
user = mapAttrs (const stringOption) {
|
||||
github = "kmein";
|
||||
name = "Kierán Meinhardt";
|
||||
email = "kieran.meinhardt@gmail.com";
|
||||
};
|
||||
|
||||
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 = mapAttrs (const themeOption) {
|
||||
gtk = { name = "Arc"; package = pkgs.arc-theme; };
|
||||
icon = { name = "Arc"; package = pkgs.arc-icon-theme; };
|
||||
cursor = { name = "capitaine-cursors"; package = pkgs.capitaine-cursors; };
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user