[NixOS] Control what is enabled per machine with module options
This commit is contained in:
@@ -1,12 +1,8 @@
|
||||
{ pkgs, inputs, ... }:
|
||||
{
|
||||
imports = [
|
||||
inputs.home-manager.nixosModule
|
||||
];
|
||||
{ pkgs, inputs, config, makeEnable, ... }:
|
||||
makeEnable config "modules.kat" false {
|
||||
environment.systemPackages = with pkgs; [
|
||||
bitwarden
|
||||
obsidian
|
||||
vlc
|
||||
obs-studio
|
||||
ffmpeg
|
||||
];
|
||||
@@ -14,36 +10,4 @@
|
||||
environment.extraInit = ''
|
||||
export PAGER=cat
|
||||
'';
|
||||
|
||||
home-manager.users.kat = { pkgs, config, ... }: {
|
||||
services.gpg-agent = {
|
||||
enable = true;
|
||||
defaultCacheTtl = 8 * 60 * 60;
|
||||
maxCacheTtl = 8 * 60 * 60;
|
||||
enableSshSupport = true;
|
||||
pinentryFlavor = "qt";
|
||||
};
|
||||
|
||||
services.kdeconnect = {
|
||||
enable = true;
|
||||
indicator = true;
|
||||
};
|
||||
|
||||
services.git-sync = {
|
||||
enable = true;
|
||||
repositories = {
|
||||
obsidian = {
|
||||
path = config.home.homeDirectory + "/obsidian";
|
||||
uri = "git@github.com:katandtonic/obsidian.git";
|
||||
interval = 60;
|
||||
};
|
||||
org = {
|
||||
path = config.home.homeDirectory + "/org";
|
||||
uri = "ssh://gitea@1896Folsom.duckdns.org:1123/kkathuang/org.git";
|
||||
interval = 45;
|
||||
};
|
||||
};
|
||||
};
|
||||
home.stateVersion = "23.11";
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user