Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions doc/src/modules.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,7 @@ documentation for more details):
```nix
{ config, lib, mkTarget ... }:
mkTarget {
name = "«name»";
humanName = "«human readable name»";

configElements =
config =
{ colors }:
{
programs.«name».theme.background = colors.base00;
Expand Down
4 changes: 1 addition & 3 deletions modules/alacritty/hm.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
# - `man 5 alacritty`
{ mkTarget, ... }:
mkTarget {
name = "alacritty";
humanName = "Alacritty";
configElements = [
config = [
(
{ colors }:
{
Expand Down
5 changes: 1 addition & 4 deletions modules/anki/hm.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,7 @@
...
}:
mkTarget {
name = "anki";
humanName = "Anki";

configElements =
config =
{ colors }:
{
programs.anki.addons = lib.singleton (
Expand Down
5 changes: 1 addition & 4 deletions modules/ashell/hm.nix
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
{ mkTarget, ... }:
mkTarget {
name = "ashell";
humanName = "Ashell";

configElements = [
config = [
(
{ colors }:
{
Expand Down
5 changes: 1 addition & 4 deletions modules/avizo/hm.nix
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
{ mkTarget, ... }:
mkTarget {
name = "avizo";
humanName = "Avizo";

# Referenced https://github.com/stacyharper/base16-mako
configElements =
config =
{ colors, opacity }:
{
services.avizo = {
Expand Down
5 changes: 1 addition & 4 deletions modules/bat/hm.nix
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
{ mkTarget, ... }:
mkTarget {
name = "bat";
humanName = "Bat";

configElements =
config =
{ colors }:
{
programs.bat = {
Expand Down
7 changes: 2 additions & 5 deletions modules/bemenu/hm.nix
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
{ mkTarget, lib, ... }:
mkTarget {
name = "bemenu";
humanName = "bemenu";

extraOptions =
options =
{ fonts }:
{
fontSize = lib.mkOption {
Expand All @@ -24,7 +21,7 @@ mkTarget {
};
};

configElements = [
config = [
(
{ cfg, fonts }:
{
Expand Down
7 changes: 2 additions & 5 deletions modules/blender/hm.nix
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
{ mkTarget, lib, ... }:
mkTarget {
name = "blender";
humanName = "Blender";

extraOptions.themeBody = lib.mkOption {
options.themeBody = lib.mkOption {
type = lib.types.lines;
default = "";
internal = true;
};

configElements = [
config = [
./color-theme.nix
./font-theme.nix
(
Expand Down
5 changes: 1 addition & 4 deletions modules/bspwm/hm.nix
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
{ mkTarget, ... }:
mkTarget {
name = "bspwm";
humanName = "bspwm";

configElements =
config =
{ colors }:
{
xsession.windowManager.bspwm.settings = with colors.withHashtag; {
Expand Down
5 changes: 1 addition & 4 deletions modules/btop/hm.nix
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
{ mkTarget, lib, ... }:
mkTarget {
name = "btop";
humanName = "btop";

configElements = [
config = [
(
{ opacity }:
{
Expand Down
9 changes: 2 additions & 7 deletions modules/cava/hm.nix
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
{ mkTarget, lib, ... }:
mkTarget {
name = "cava";
humanName = "CAVA";
options.rainbow.enable = lib.mkEnableOption "rainbow gradient theming";

extraOptions = {
rainbow.enable = lib.mkEnableOption "rainbow gradient theming";
};

configElements =
config =
{ cfg, colors }:
let
mkGradient =
Expand Down
5 changes: 1 addition & 4 deletions modules/cavalier/hm.nix
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
{ mkTarget, lib, ... }:
mkTarget {
name = "cavalier";
humanName = "Cavalier";

configElements =
config =
{ colors }:
{
programs.cavalier.settings.general = {
Expand Down
5 changes: 1 addition & 4 deletions modules/chromium/nixos.nix
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
{ mkTarget, ... }:
mkTarget {
name = "chromium";
humanName = "Chromium, Google Chrome and Brave";

configElements =
config =
{ colors }:
{
programs.chromium = {
Expand Down
5 changes: 1 addition & 4 deletions modules/console/droid.nix
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
{ mkTarget, ... }:
mkTarget {
name = "console";
humanName = "the Nix-on-Droid console";

configElements =
config =
{ colors }:
{
terminal.colors = with colors.withHashtag; rec {
Expand Down
5 changes: 1 addition & 4 deletions modules/console/nixos.nix
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
{ mkTarget, ... }:
mkTarget {
name = "console";
humanName = "the Linux kernel console";

configElements =
config =
{ colors }:
{
console.colors = with colors; [
Expand Down
4 changes: 2 additions & 2 deletions modules/discord/nixcord.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ mkTarget {
name = "nixcord";
humanName = "Nixcord";

extraOptions = {
options = {
themeBody = lib.mkOption {
type = lib.types.lines;
default = "";
Expand All @@ -23,7 +23,7 @@ mkTarget {
};
};

configElements = (import ./common/theme-elements.nix "nixcord") ++ [
config = (import ./common/theme-elements.nix "nixcord") ++ [
(
{ cfg }:
let
Expand Down
4 changes: 2 additions & 2 deletions modules/discord/vencord.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ mkTarget {
name = "vencord";
humanName = "Vencord";

extraOptions = {
options = {
themeBody = lib.mkOption {
type = lib.types.lines;
default = "";
Expand All @@ -17,7 +17,7 @@ mkTarget {
};
};

configElements = (import ./common/theme-elements.nix "vencord") ++ [
config = (import ./common/theme-elements.nix "vencord") ++ [
(
{ cfg }:
lib.mkIf
Expand Down
4 changes: 2 additions & 2 deletions modules/discord/vesktop.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ mkTarget {
name = "vesktop";
humanName = "Vesktop";

extraOptions.themeBody = lib.mkOption {
options.themeBody = lib.mkOption {
type = lib.types.lines;
default = "";
internal = true;
};

configElements = (import ./common/theme-elements.nix "vesktop") ++ [
config = (import ./common/theme-elements.nix "vesktop") ++ [
(
{ cfg }:
lib.mkIf (cfg.themeBody != (import ./common/theme-header.nix)) {
Expand Down
5 changes: 1 addition & 4 deletions modules/dunst/hm.nix
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
{ mkTarget, lib, ... }:
mkTarget {
name = "dunst";
humanName = "Dunst";

configElements = [
config = [
(
{ fonts }:
{
Expand Down
5 changes: 1 addition & 4 deletions modules/emacs/hm.nix
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
{ mkTarget, pkgs, ... }:
mkTarget {
name = "emacs";
humanName = "Emacs";

configElements = [
config = [
(
{ opacity }:
{
Expand Down
5 changes: 1 addition & 4 deletions modules/eog/hm.nix
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
{ mkTarget, ... }:
mkTarget {
name = "eog";
humanName = "Eye of GNOME Image Viewer";

configElements =
config =
{ colors }:
{
dconf.settings."org/gnome/eog/view" = {
Expand Down
5 changes: 1 addition & 4 deletions modules/fcitx5/hm.nix
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
{ mkTarget, ... }:
mkTarget {
name = "fcitx5";
humanName = "fcitx5";

configElements = [
config = [
(
{ fonts }:
{
Expand Down
4 changes: 1 addition & 3 deletions modules/feh/hm.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
...
}:
mkTarget {
name = "feh";
humanName = "the desktop background using Feh";
autoEnable =
with config.xsession.windowManager;
bspwm.enable
Expand All @@ -24,7 +22,7 @@ mkTarget {
|| xmonad.enable
'';

configElements =
config =
{ imageScalingMode, image }:
{
xsession.initExtra =
Expand Down
4 changes: 1 addition & 3 deletions modules/feh/nixos.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
...
}:
mkTarget {
name = "feh";
humanName = "the desktop background using Feh";
autoEnable =
with config.services.xserver.windowManager;
xmonad.enable || i3.enable;
Expand All @@ -16,7 +14,7 @@ mkTarget {
xmonad.enable || i3.enable
'';

configElements =
config =
{ image, imageScalingMode }:
{
services.xserver.displayManager.sessionCommands =
Expand Down
6 changes: 3 additions & 3 deletions modules/firefox/each-config.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
...
}:
mkTarget {
inherit name humanName;
inherit humanName name;

extraOptions = {
options = {
profileNames = lib.mkOption {
description = "The ${humanName} profile names to apply styling on.";
type = lib.types.listOf lib.types.str;
Expand All @@ -26,7 +26,7 @@ mkTarget {
firefoxGnomeTheme.enable = lib.mkEnableOption "[Firefox GNOME theme](https://github.com/rafaelmardojai/firefox-gnome-theme) on ${humanName}";
};

configElements = [
config = [
(
{ cfg }:
{
Expand Down
5 changes: 1 addition & 4 deletions modules/fish/hm.nix
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
{ mkTarget, ... }:
mkTarget {
name = "fish";
humanName = "Fish";

configElements =
config =
{ colors, inputs }:
{
programs.fish.interactiveShellInit = import ./prompt.nix {
Expand Down
5 changes: 1 addition & 4 deletions modules/fish/nixos.nix
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
{ mkTarget, ... }:
mkTarget {
name = "fish";
humanName = "Fish";

configElements =
config =
{ colors, inputs }:
{
programs.fish.promptInit = import ./prompt.nix { inherit colors inputs; };
Expand Down
5 changes: 1 addition & 4 deletions modules/fnott/hm.nix
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
{ mkTarget, lib, ... }:
mkTarget {
name = "fnott";
humanName = "Fnott";

configElements = [
config = [
(
{ fonts }:
{
Expand Down
5 changes: 1 addition & 4 deletions modules/foliate/hm.nix
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
{ mkTarget, ... }:
mkTarget {
name = "foliate";
humanName = "Foliate";

configElements =
config =
{ colors }:
{
programs.foliate = {
Expand Down
5 changes: 1 addition & 4 deletions modules/font-packages/darwin.nix
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
{ mkTarget, ... }:
mkTarget {
name = "font-packages";
humanName = "Font packages";

configElements =
config =
{ fonts }:
{
fonts = { inherit (fonts) packages; };
Expand Down
Loading