mirror of
https://github.com/kmein/niveum
synced 2026-03-16 18:21:07 +01:00
Installed. More configuration
~ move options out
~ redshift: switch to geoclue2
~ wifi: add c-base
+ rofi: add active and urgent colours
~ vim: wildmode made more sensible
~ i3blocks: fix battery script
- i3blocks: brightness indicator
+ i3: rofi window switcher
~ use illum for backlight
+ use unclutter
+ tor-browser-bundle-bin
+ xfce.tumbler
+ xorg.{xbacklight,xcursorthemes,xkill}
+ texlive-full
+ cabal{-install,2nix}
+ idris
~ bash: fix prompt
+ helpers file
This commit is contained in:
46
options.nix
Normal file
46
options.nix
Normal file
@@ -0,0 +1,46 @@
|
||||
{ lib, pkgs, ... }:
|
||||
with lib;
|
||||
with import ./theme.nix;
|
||||
let
|
||||
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) {
|
||||
terminal = "${pkgs.xfce.terminal}/bin/xfce4-terminal";
|
||||
browser = "${pkgs.chromium}/bin/chromium";
|
||||
fileManager = "${pkgs.xfce.thunar}/bin/thunar";
|
||||
locker = "${pkgs.i3lock}/bin/i3lock -e -c ${strings.removePrefix "#" black}";
|
||||
};
|
||||
|
||||
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/" "*.o" "*.hi" "*.aux" "*.class" "*.dyn_hi" "*.dyn_o" "dist/" ];
|
||||
};
|
||||
|
||||
theme = mapAttrs (const themeOption) {
|
||||
gtk = { name = "Paper"; package = pkgs.paper-gtk-theme; };
|
||||
icon = { name = "Paper"; package = pkgs.paper-icon-theme; };
|
||||
};
|
||||
|
||||
wallpaper = mkOption {
|
||||
type = types.path;
|
||||
default = pkgs.copyPathToStore ./art/haskell-grey.png;
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user