config.sbruder.gui → config.sbruder.gui.enable

This commit is contained in:
Simon Bruder 2020-12-05 15:44:58 +01:00
parent a23c3801cb
commit 9b22c91170
No known key found for this signature in database
GPG key ID: 6F03E0000CC5B62F
24 changed files with 25 additions and 25 deletions

View file

@ -12,7 +12,7 @@
]; ];
sbruder = { sbruder = {
gui = true; gui.enable = true;
libvirt.enable = true; libvirt.enable = true;
restic.enable = true; restic.enable = true;
ssd.enable = true; ssd.enable = true;

View file

@ -12,7 +12,7 @@
]; ];
sbruder = { sbruder = {
gui = true; gui.enable = true;
libvirt.enable = true; libvirt.enable = true;
restic.enable = true; restic.enable = true;
ssd.enable = true; ssd.enable = true;

View file

@ -1,6 +1,6 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
lib.mkIf config.sbruder.gui { lib.mkIf config.sbruder.gui.enable {
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
(mumble.override { pulseSupport = true; }) # VoIP group chat (mumble.override { pulseSupport = true; }) # VoIP group chat
claws-mail # email client that looks ugly but just works claws-mail # email client that looks ugly but just works

View file

@ -1,6 +1,6 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
lib.mkIf config.sbruder.gui { lib.mkIf config.sbruder.gui.enable {
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
blender # 3d animation blender # 3d animation
darktable # photo development darktable # photo development

View file

@ -2,7 +2,7 @@
let let
gutenprintWithVersion = "gutenprint.${lib.versions.majorMinor (lib.getVersion pkgs.gutenprint)}"; gutenprintWithVersion = "gutenprint.${lib.versions.majorMinor (lib.getVersion pkgs.gutenprint)}";
in in
lib.mkIf config.sbruder.gui { lib.mkIf config.sbruder.gui.enable {
services = { services = {
printing = { printing = {
enable = true; enable = true;

View file

@ -3,7 +3,7 @@
{ {
# Options that affect multiple modules # Options that affect multiple modules
options.sbruder = { options.sbruder = {
gui = lib.mkEnableOption "gui"; gui.enable = lib.mkEnableOption "gui";
}; };
# All modules are imported but non-essential modules are activated by # All modules are imported but non-essential modules are activated by

View file

@ -1,6 +1,6 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
lib.mkIf config.sbruder.gui { lib.mkIf config.sbruder.gui.enable {
fonts = { fonts = {
fonts = with pkgs; [ fonts = with pkgs; [
corefonts # good ol microsoft fonts corefonts # good ol microsoft fonts

View file

@ -6,6 +6,6 @@
config = { config = {
virtualisation.libvirtd.enable = config.sbruder.libvirt.enable; virtualisation.libvirtd.enable = config.sbruder.libvirt.enable;
environment.systemPackages = lib.mkIf config.sbruder.gui [ pkgs.virt-manager ]; environment.systemPackages = lib.mkIf config.sbruder.gui.enable [ pkgs.virt-manager ];
}; };
} }

View file

@ -24,7 +24,7 @@
# Literature # Literature
mupdf # document (pdf) viewer and tools mupdf # document (pdf) viewer and tools
] ++ ( ] ++ (
if config.sbruder.gui then [ if config.sbruder.gui.enable then [
# Audio # Audio
audacity # audio editor audacity # audio editor
picard # musicbrainz tagger picard # musicbrainz tagger

View file

@ -1,6 +1,6 @@
{ config, lib, ... }: { config, lib, ... }:
lib.mkIf config.sbruder.gui { lib.mkIf config.sbruder.gui.enable {
networking.networkmanager = { networking.networkmanager = {
enable = true; enable = true;
}; };

View file

@ -1,6 +1,6 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
lib.mkIf config.sbruder.gui { lib.mkIf config.sbruder.gui.enable {
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
aspellDicts.de aspellDicts.de
aspellDicts.en aspellDicts.en

View file

@ -1,6 +1,6 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
lib.mkIf config.sbruder.gui { lib.mkIf config.sbruder.gui.enable {
sound.enable = true; sound.enable = true;
hardware.pulseaudio = { hardware.pulseaudio = {
enable = true; enable = true;

View file

@ -1,6 +1,6 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
lib.mkIf config.sbruder.gui { lib.mkIf config.sbruder.gui.enable {
programs.sway.enable = true; # actual configuration happens in home-manager programs.sway.enable = true; # actual configuration happens in home-manager
services.logind.lidSwitchDocked = config.services.logind.lidSwitch; services.logind.lidSwitchDocked = config.services.logind.lidSwitch;

View file

@ -103,7 +103,7 @@
# nix tools # nix tools
niv # depdendency manager niv # depdendency manager
] ]
(lib.mkIf config.sbruder.gui [ (lib.mkIf config.sbruder.gui.enable [
anki # flashcard SRS anki # flashcard SRS
filezilla # ftp client filezilla # ftp client
gparted # gui for parted gparted # gui for parted

View file

@ -1,6 +1,6 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
lib.mkIf config.sbruder.gui { lib.mkIf config.sbruder.gui.enable {
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
firefox-wayland firefox-wayland
# Buidling chromium from source on a potato laptop is not fun # Buidling chromium from source on a potato laptop is not fun

View file

@ -30,9 +30,9 @@ in
home-manager.users.simon = { lib, pkgs, ... }: { home-manager.users.simon = { lib, pkgs, ... }: {
options.sbruder = { options.sbruder = {
gui = lib.mkOption { gui.enable = lib.mkOption {
type = lib.types.bool; type = lib.types.bool;
default = config.sbruder.gui; default = config.sbruder.gui.enable;
description = "Whether to enable gui"; description = "Whether to enable gui";
}; };
}; };

View file

@ -46,7 +46,7 @@ let
in in
{ {
programs.alacritty = { programs.alacritty = {
enable = config.sbruder.gui; enable = config.sbruder.gui.enable;
settings = { settings = {
font = { font = {
normal = { normal = {

View file

@ -1,5 +1,5 @@
{ config, lib, ... }: { config, lib, ... }:
lib.mkIf config.sbruder.gui { lib.mkIf config.sbruder.gui.enable {
home.file.".local/share/Anki2/addons21/ankisyncd/__init__.py".source = ../files/ankisyncd/__init__.py; home.file.".local/share/Anki2/addons21/ankisyncd/__init__.py".source = ../files/ankisyncd/__init__.py;
} }

View file

@ -2,7 +2,7 @@
{ {
gtk = { gtk = {
enable = config.sbruder.gui; enable = config.sbruder.gui.enable;
font.name = "sans-serif 10"; font.name = "sans-serif 10";
theme = { theme = {
package = pkgs.gnome-themes-extra; package = pkgs.gnome-themes-extra;

View file

@ -51,7 +51,7 @@ let
in in
{ {
programs.mpv = { programs.mpv = {
enable = config.sbruder.gui; enable = config.sbruder.gui.enable;
config = { config = {
# Main application font # Main application font

View file

@ -33,7 +33,7 @@ let
cfg = config.wayland.windowManager.sway.config; cfg = config.wayland.windowManager.sway.config;
thinsp = ""; thinsp = "";
in in
lib.mkIf config.sbruder.gui { lib.mkIf config.sbruder.gui.enable {
wayland.windowManager.sway = { wayland.windowManager.sway = {
enable = true; enable = true;

View file

@ -1,6 +1,6 @@
{ config, lib, ... }: { config, lib, ... }:
lib.mkIf config.sbruder.gui { lib.mkIf config.sbruder.gui.enable {
home.file.".XCompose".text = '' home.file.".XCompose".text = ''
include "%L" include "%L"

View file

@ -2,7 +2,7 @@
{ {
xdg.mimeApps = { xdg.mimeApps = {
enable = config.sbruder.gui; enable = config.sbruder.gui.enable;
defaultApplications = { defaultApplications = {
"application/pdf" = "org.pwmt.zathura.desktop"; "application/pdf" = "org.pwmt.zathura.desktop";
"image/png" = "mpv.desktop"; "image/png" = "mpv.desktop";

View file

@ -45,7 +45,7 @@ let
in in
{ {
programs.zathura = { programs.zathura = {
enable = config.sbruder.gui; enable = config.sbruder.gui.enable;
options = { options = {
selection-clipboard = "clipboard"; selection-clipboard = "clipboard";
} // colorschemes.solarized-dark; } // colorschemes.solarized-dark;