Compare commits
No commits in common. "6f0a5fcc305fe216dd261d0e9fc334b01843c851" and "a615ab83e3d439c2f39703c4cc29e05af12ad4b7" have entirely different histories.
6f0a5fcc30
...
a615ab83e3
5 changed files with 6 additions and 30 deletions
|
@ -1,14 +1,11 @@
|
|||
{ config, lib, ... }:
|
||||
{ config, pkgs, lib, ... }:
|
||||
|
||||
let
|
||||
cfg = config.local.programs.calendar;
|
||||
|
||||
mkCalOpts = name: {
|
||||
enable = lib.mkEnableOption name;
|
||||
|
||||
# Custom package doesn't work yet.
|
||||
# See: https://github.com/nix-community/home-manager/pull/5428
|
||||
# package = lib.mkPackageOption pkgs name { };
|
||||
package = lib.mkPackageOption pkgs name { };
|
||||
};
|
||||
in
|
||||
{
|
||||
|
@ -16,20 +13,6 @@ in
|
|||
khal = mkCalOpts "khal";
|
||||
};
|
||||
|
||||
config = {
|
||||
accounts.calendar.basePath = "${config.xdg.dataHome}/calendars";
|
||||
|
||||
programs.khal = lib.mkIf cfg.khal.enable {
|
||||
enable = true;
|
||||
locale = rec {
|
||||
timeformat = "%H:%M";
|
||||
dateformat = "%Y-%m-%d";
|
||||
longdateformat = dateformat;
|
||||
datetimeformat = "${dateformat} ${timeformat}";
|
||||
longdatetimeformat = datetimeformat;
|
||||
};
|
||||
# See: https://khal.readthedocs.io/en/latest/configure.html
|
||||
settings = {};
|
||||
};
|
||||
};
|
||||
config.home.packages =
|
||||
lib.optional cfg.khal.enable cfg.khal.package;
|
||||
}
|
||||
|
|
|
@ -42,9 +42,6 @@ in
|
|||
};
|
||||
};
|
||||
})
|
||||
(final: prev: {
|
||||
khal = (import inputs.nixpkgs-unstable { inherit (config.nixpkgs) system; }).khal;
|
||||
})
|
||||
(final: prev: {
|
||||
unstable = import inputs.nixpkgs-unstable {
|
||||
inherit (config.nixpkgs) config overlays system;
|
||||
|
|
Binary file not shown.
|
@ -55,8 +55,7 @@
|
|||
|
||||
home-manager.users.jan = {
|
||||
imports = [
|
||||
./email_accounts.secret.nix
|
||||
./calendars.secret.nix
|
||||
./accounts.secret.nix
|
||||
./git
|
||||
];
|
||||
|
||||
|
@ -78,6 +77,7 @@
|
|||
|
||||
local.shell.enable = lib.mkDefault true;
|
||||
|
||||
|
||||
################################################################################
|
||||
# Programs
|
||||
################################################################################
|
||||
|
@ -96,10 +96,6 @@
|
|||
local.programs.file-managers.vifm.enable = lib.mkDefault true;
|
||||
|
||||
local.programs.aerc.enable = lib.mkDefault true;
|
||||
local.programs.calendar.khal = {
|
||||
enable = lib.mkDefault true;
|
||||
# package = pkgs.unstable.khal;
|
||||
};
|
||||
|
||||
local.programs.communication = {
|
||||
telegram.enable = lib.mkDefault true;
|
||||
|
|
Loading…
Reference in a new issue