style: use alejandra formatter on all nix files
This commit is contained in:
parent
d563805909
commit
0d8a394dcf
76 changed files with 1287 additions and 935 deletions
|
@ -1,23 +1,26 @@
|
|||
{ lib, config, inputs, pkgs, ... }:
|
||||
with lib;
|
||||
let
|
||||
{
|
||||
lib,
|
||||
config,
|
||||
inputs,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
with lib; let
|
||||
cfg = config.modules.dav;
|
||||
secretsDirectory = "${(builtins.toString inputs.nix-private)}/secrets";
|
||||
vdirsyncerConf = {
|
||||
enable = true;
|
||||
auth = "basic";
|
||||
};
|
||||
in
|
||||
{
|
||||
in {
|
||||
options.modules.dav = {
|
||||
enable = mkEnableOption "enable personal Caldav / CardDav";
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
|
||||
sops = {
|
||||
secrets = {
|
||||
"${inputs.nix-private.dav.personal.secret.key}" = {
|
||||
sopsFile = "${secretsDirectory}/${inputs.nix-private.dav.personal.secret.file}";
|
||||
sopsFile = "${secretsDirectory}/${inputs.nix-private.dav.personal.secret.file}";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
@ -34,20 +37,22 @@ in
|
|||
"${config.sops.secrets."${inputs.nix-private.dav.personal.secret.key}".path}"
|
||||
];
|
||||
};
|
||||
vdirsyncer = vdirsyncerConf // {
|
||||
metadata = [
|
||||
"color"
|
||||
"displayname"
|
||||
];
|
||||
itemTypes = [
|
||||
"VTODO"
|
||||
"VEVENT"
|
||||
];
|
||||
collections = [
|
||||
"from a"
|
||||
"from b"
|
||||
];
|
||||
};
|
||||
vdirsyncer =
|
||||
vdirsyncerConf
|
||||
// {
|
||||
metadata = [
|
||||
"color"
|
||||
"displayname"
|
||||
];
|
||||
itemTypes = [
|
||||
"VTODO"
|
||||
"VEVENT"
|
||||
];
|
||||
collections = [
|
||||
"from a"
|
||||
"from b"
|
||||
];
|
||||
};
|
||||
khal = {
|
||||
enable = true;
|
||||
type = "discover";
|
||||
|
@ -70,11 +75,13 @@ in
|
|||
type = "filesystem";
|
||||
fileExt = ".vcf";
|
||||
};
|
||||
vdirsyncer = vdirsyncerConf // {
|
||||
metadata = [
|
||||
"displayname"
|
||||
];
|
||||
};
|
||||
vdirsyncer =
|
||||
vdirsyncerConf
|
||||
// {
|
||||
metadata = [
|
||||
"displayname"
|
||||
];
|
||||
};
|
||||
khal = {
|
||||
enable = true;
|
||||
color = "#26A269";
|
||||
|
@ -113,7 +120,7 @@ in
|
|||
general = {
|
||||
default_action = "list";
|
||||
editor = ["nvim" "-i" "NONE"];
|
||||
merge_editor = [ "nvim" "-d" ];
|
||||
merge_editor = ["nvim" "-d"];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue