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 = [
|
imports = [
|
||||||
./aerc.nix
|
./aerc.nix
|
||||||
./calendar.nix
|
|
||||||
./communication.nix
|
./communication.nix
|
||||||
./dev-tools.nix
|
./dev-tools.nix
|
||||||
./flameshot.nix
|
./flameshot.nix
|
||||||
|
|
|
@ -2,24 +2,19 @@
|
||||||
|
|
||||||
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 = {
|
options.local.programs.share-files = with lib; {
|
||||||
onionshare.enable = mkShareFileOpts "onionshare-gui";
|
onionshare.enable = mkEnableOption "onionshare";
|
||||||
croc.enable = mkShareFileOpts "croc";
|
croc.enable = mkEnableOption "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 cfg.onionshare.package
|
lib.optional cfg.onionshare.enable pkgs.onionshare-gui
|
||||||
|
|
||||||
# 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 cfg.croc.package;
|
++ lib.optional cfg.croc.enable pkgs.croc;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,13 +12,7 @@ let cfg = config.local.window-manager.xmonad; in
|
||||||
|
|
||||||
services.xserver = {
|
services.xserver = {
|
||||||
enable = true;
|
enable = true;
|
||||||
displayManager = {
|
displayManager.defaultSession = "none+xmonad";
|
||||||
defaultSession = "none+xmonad";
|
|
||||||
lightdm = {
|
|
||||||
enable = true;
|
|
||||||
greeters.tiny.enable = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
windowManager.xmonad.enable = true;
|
windowManager.xmonad.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue