nextcloud for calendars
This commit is contained in:
parent
c5c4ff3925
commit
6fe1b261d5
8 changed files with 102 additions and 82 deletions
|
|
@ -88,6 +88,17 @@ in
|
|||
userName = "henridohmen";
|
||||
};
|
||||
};
|
||||
"Nextcloud" = {
|
||||
thunderbird = {
|
||||
enable = true;
|
||||
color = "#FFBE6F";
|
||||
};
|
||||
remote = {
|
||||
type = "caldav";
|
||||
url = "https://nextcloud.hdohmen.de/remote.php/dav/calendars/henri/default/";
|
||||
userName = "henri";
|
||||
};
|
||||
};
|
||||
};
|
||||
accounts.contact.accounts = {
|
||||
"Kontakte" = {
|
||||
|
|
|
|||
|
|
@ -4,6 +4,16 @@
|
|||
...
|
||||
}:
|
||||
with lib;
|
||||
let
|
||||
mkSubOption =
|
||||
of: name:
|
||||
mkOption {
|
||||
type = types.bool;
|
||||
default = of;
|
||||
description = "Enables" ++ name;
|
||||
};
|
||||
mkDesktopOption = mkSubOption config.hd.desktop.enable;
|
||||
in
|
||||
{
|
||||
options.home = lib.mkOption {
|
||||
# used by /home/default.nix
|
||||
|
|
@ -19,85 +29,19 @@ with lib;
|
|||
description = "Common NixOS configuration of all desktops.";
|
||||
};
|
||||
|
||||
audio = {
|
||||
enable = mkOption {
|
||||
type = types.bool;
|
||||
default = config.hd.desktop.enable;
|
||||
description = "Enable audio configuration";
|
||||
};
|
||||
};
|
||||
|
||||
gpg = {
|
||||
enable = mkOption {
|
||||
type = types.bool;
|
||||
default = config.hd.desktop.enable;
|
||||
description = "Enable GPG configuration";
|
||||
};
|
||||
};
|
||||
|
||||
network = {
|
||||
enable = mkOption {
|
||||
type = types.bool;
|
||||
default = config.hd.desktop.enable;
|
||||
description = "Enable network configuration";
|
||||
};
|
||||
};
|
||||
|
||||
security = {
|
||||
enable = mkOption {
|
||||
type = types.bool;
|
||||
default = config.hd.desktop.enable;
|
||||
description = "Enable desktop security configuration";
|
||||
};
|
||||
};
|
||||
|
||||
audio.enable = mkDesktopOption "audio configuration";
|
||||
gpg.enable = mkDesktopOption "GPG configuration";
|
||||
network.enable = mkDesktopOption "network configuration";
|
||||
security.enable = mkDesktopOption "security configuration";
|
||||
software = {
|
||||
enable = mkOption {
|
||||
type = types.bool;
|
||||
default = config.hd.desktop.enable;
|
||||
description = "Enable software installation";
|
||||
};
|
||||
|
||||
development = {
|
||||
enable = mkOption {
|
||||
type = types.bool;
|
||||
default = config.hd.desktop.software.enable;
|
||||
description = "Enable development software";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
windowManager = {
|
||||
enable = mkOption {
|
||||
type = types.bool;
|
||||
default = config.hd.desktop.enable;
|
||||
description = "Enable window manager configuration";
|
||||
};
|
||||
};
|
||||
|
||||
accounts = {
|
||||
enable = mkOption {
|
||||
type = types.bool;
|
||||
default = config.hd.desktop.enable;
|
||||
description = "Enable desktop user accounts";
|
||||
};
|
||||
};
|
||||
|
||||
fonts = {
|
||||
enable = mkOption {
|
||||
type = types.bool;
|
||||
default = config.hd.desktop.enable;
|
||||
description = "Enable font configuration";
|
||||
};
|
||||
};
|
||||
|
||||
services = {
|
||||
enable = mkOption {
|
||||
type = types.bool;
|
||||
default = config.hd.desktop.enable;
|
||||
description = "Enable desktop services";
|
||||
};
|
||||
enable = mkDesktopOption "software installation";
|
||||
development.enable = mkSubOption config.hd.desktop.software.enable "development software";
|
||||
};
|
||||
windowManager.enable = mkDesktopOption "window manager configuration";
|
||||
accounts.enable = mkDesktopOption "desktop user accounts";
|
||||
fonts.enable = mkDesktopOption "font configuration";
|
||||
services.enable = mkDesktopOption "desktop services";
|
||||
syncthing.enable = mkDesktopOption "syncthing settings";
|
||||
};
|
||||
|
||||
imports = [
|
||||
|
|
|
|||
|
|
@ -1,5 +1,10 @@
|
|||
{ lib, var, ... }:
|
||||
{
|
||||
lib,
|
||||
var,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
lib.mkIf config.hd.desktop.syncthing.enable {
|
||||
services.syncthing = {
|
||||
enable = lib.mkDefault true;
|
||||
user = "hd";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue