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