restructure
This commit is contained in:
parent
4922f8f7cb
commit
ffe40ca5e7
25 changed files with 84 additions and 66 deletions
49
desktop/services.nix
Normal file
49
desktop/services.nix
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
{
|
||||
pkgs,
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
let
|
||||
cfg = config.hd.desktop.services;
|
||||
inherit (lib) mkEnableOption mkIf;
|
||||
in
|
||||
{
|
||||
options.hd.desktop.services.enable = mkEnableOption "Services";
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
services = {
|
||||
printing.enable = true;
|
||||
avahi = {
|
||||
enable = true;
|
||||
nssmdns4 = true;
|
||||
openFirewall = true;
|
||||
};
|
||||
udisks2.enable = true;
|
||||
emacs.enable = true;
|
||||
};
|
||||
|
||||
home.services.protonmail-bridge = {
|
||||
enable = true;
|
||||
path = with pkgs; [
|
||||
pass
|
||||
gnome-keyring
|
||||
];
|
||||
};
|
||||
|
||||
home.services.unison' = {
|
||||
# TODO: parameterize
|
||||
enable = true;
|
||||
pairs = {
|
||||
"docs".roots = [
|
||||
"/home/hd/Documents"
|
||||
"ssh://roam//home/hd/Documents"
|
||||
];
|
||||
"desktop".roots = [
|
||||
"/home/hd/Desktop"
|
||||
"ssh://roam//home/hd/Desktop"
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue