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

restic-rest-server
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 = {
gui = true;
gui.enable = true;
libvirt.enable = true;
restic.enable = true;
ssd.enable = true;

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -6,6 +6,6 @@
config = {
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
mupdf # document (pdf) viewer and tools
] ++ (
if config.sbruder.gui then [
if config.sbruder.gui.enable then [
# Audio
audacity # audio editor
picard # musicbrainz tagger

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,5 +1,5 @@
{ 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;
}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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