Compare commits
2 commits
2969485502
...
d380f10983
Author | SHA1 | Date | |
---|---|---|---|
d380f10983 | |||
9f17dba58d |
4 changed files with 36 additions and 6 deletions
18
modules/home-manager/programs/calendar.nix
Normal file
18
modules/home-manager/programs/calendar.nix
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
{ config, pkgs, lib, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
cfg = config.local.programs.calendar;
|
||||||
|
|
||||||
|
mkCalOpts = name: {
|
||||||
|
enable = lib.mkEnableOption name;
|
||||||
|
package = lib.mkPackageOption pkgs name { };
|
||||||
|
};
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options.local.programs.calendar = {
|
||||||
|
khal = mkCalOpts "khal";
|
||||||
|
};
|
||||||
|
|
||||||
|
config.home.packages =
|
||||||
|
lib.optional cfg.khal.enable cfg.khal.package;
|
||||||
|
}
|
|
@ -3,6 +3,7 @@
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./aerc.nix
|
./aerc.nix
|
||||||
|
./calendar.nix
|
||||||
./communication.nix
|
./communication.nix
|
||||||
./dev-tools.nix
|
./dev-tools.nix
|
||||||
./flameshot.nix
|
./flameshot.nix
|
||||||
|
|
|
@ -2,19 +2,24 @@
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.local.programs.share-files;
|
cfg = config.local.programs.share-files;
|
||||||
|
|
||||||
|
mkShareFileOpts = name: {
|
||||||
|
enable = lib.mkEnableOption name;
|
||||||
|
package = lib.mkPackageOption pkgs name { };
|
||||||
|
};
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.local.programs.share-files = with lib; {
|
options.local.programs.share-files = {
|
||||||
onionshare.enable = mkEnableOption "onionshare";
|
onionshare.enable = mkShareFileOpts "onionshare-gui";
|
||||||
croc.enable = mkEnableOption "croc";
|
croc.enable = mkShareFileOpts "croc";
|
||||||
};
|
};
|
||||||
|
|
||||||
config.home.packages =
|
config.home.packages =
|
||||||
# OnionShare is an open-source tool that lets you securely and anonymously share files,
|
# OnionShare is an open-source tool that lets you securely and anonymously share files,
|
||||||
# host websites, and chat with friends using the Tor network.
|
# host websites, and chat with friends using the Tor network.
|
||||||
lib.optional cfg.onionshare.enable pkgs.onionshare-gui
|
lib.optional cfg.onionshare.enable cfg.onionshare.package
|
||||||
|
|
||||||
# Easily and securely send things from one computer to another
|
# Easily and securely send things from one computer to another
|
||||||
++ lib.optional cfg.croc.enable pkgs.croc;
|
++ lib.optional cfg.croc.enable cfg.croc.package;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,7 +12,13 @@ let cfg = config.local.window-manager.xmonad; in
|
||||||
|
|
||||||
services.xserver = {
|
services.xserver = {
|
||||||
enable = true;
|
enable = true;
|
||||||
displayManager.defaultSession = "none+xmonad";
|
displayManager = {
|
||||||
|
defaultSession = "none+xmonad";
|
||||||
|
lightdm = {
|
||||||
|
enable = true;
|
||||||
|
greeters.tiny.enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
windowManager.xmonad.enable = true;
|
windowManager.xmonad.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue