mirror of
https://github.com/nmasur/dotfiles
synced 2024-12-05 01:19:09 +00:00
Compare commits
3 Commits
9fb7f68b07
...
e6644ab7b9
Author | SHA1 | Date | |
---|---|---|---|
|
e6644ab7b9 | ||
|
e43f6cf000 | ||
|
a9cdf6ac38 |
@ -169,7 +169,7 @@
|
|||||||
-- super-t open new tab in new dir
|
-- super-t open new tab in new dir
|
||||||
{
|
{
|
||||||
key = 't',
|
key = 't',
|
||||||
mods = 'SUPER',
|
mods = ${if pkgs.stdenv.isDarwin then "'SUPER'" else "'ALT'"},
|
||||||
action = wezterm.action.SpawnCommandInNewTab {
|
action = wezterm.action.SpawnCommandInNewTab {
|
||||||
cwd = wezterm.home_dir,
|
cwd = wezterm.home_dir,
|
||||||
},
|
},
|
||||||
|
37
modules/nixos/applications/calendar.nix
Normal file
37
modules/nixos/applications/calendar.nix
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
{
|
||||||
|
|
||||||
|
options = {
|
||||||
|
calendar = {
|
||||||
|
enable = lib.mkEnableOption {
|
||||||
|
description = "Enable calendar.";
|
||||||
|
default = false;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
config = lib.mkIf (config.gui.enable && config.calendar.enable) {
|
||||||
|
home-manager.users.${config.user} = {
|
||||||
|
|
||||||
|
accounts.calendar.accounts.default = {
|
||||||
|
basePath = "other/calendars"; # Where to save calendars in ~ directory
|
||||||
|
name = "personal";
|
||||||
|
local.type = "filesystem";
|
||||||
|
primary = true;
|
||||||
|
remote = {
|
||||||
|
passwordCommand = [ "" ];
|
||||||
|
type = "caldav";
|
||||||
|
url = "https://${config.hostnames.content}/remote.php/dav/principals/users/${config.user}";
|
||||||
|
userName = config.user;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
home.packages = with pkgs; [ gnome-calendar ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
@ -2,6 +2,7 @@
|
|||||||
{
|
{
|
||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
|
./calendar.nix
|
||||||
./calibre.nix
|
./calibre.nix
|
||||||
./nautilus.nix
|
./nautilus.nix
|
||||||
];
|
];
|
||||||
|
@ -42,7 +42,7 @@
|
|||||||
module-margin = 1;
|
module-margin = 1;
|
||||||
modules-left = "i3";
|
modules-left = "i3";
|
||||||
modules-center = "xwindow";
|
modules-center = "xwindow";
|
||||||
modules-right = "mailcount network pulseaudio date keyboard power";
|
modules-right = "mailcount network pulseaudio date power";
|
||||||
cursor-click = "pointer";
|
cursor-click = "pointer";
|
||||||
cursor-scroll = "ns-resize";
|
cursor-scroll = "ns-resize";
|
||||||
enable-ipc = true;
|
enable-ipc = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user