mirror of
https://github.com/kmein/niveum
synced 2026-03-19 19:41:08 +01:00
modularize
This commit is contained in:
15
modules/dropbox.nix
Normal file
15
modules/dropbox.nix
Normal file
@@ -0,0 +1,15 @@
|
||||
{ pkgs, lib, config, ... }:
|
||||
with lib;
|
||||
let cfg = config.niveum.dropbox;
|
||||
in
|
||||
{
|
||||
options.niveum.dropbox = {
|
||||
enable = mkEnableOption "Dropbox";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
services.xserver.displayManager.sessionCommands = "${pkgs.dropbox}/bin/dropbox &";
|
||||
|
||||
environment.systemPackages = [ pkgs.dropbox-cli ];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user