feat: Added services to home

This commit is contained in:
uttarayan21
2025-02-07 22:43:18 +05:30
parent f355fa88c4
commit 66e2019d7e
7 changed files with 39 additions and 1 deletions

View File

@@ -14,6 +14,7 @@
./gui-programs
./programs
./scripts.nix
./services
]
++ lib.optionals device.isLinux [./linux];
# ++ lib.optionals.device.isMac [./macos];

View File

@@ -34,6 +34,7 @@
];
home.packages = with pkgs;
[
nb
(nixvim.makeNixvim (import ../../neovim))
_1password-cli
alejandra

View File

@@ -0,0 +1,5 @@
{...}: {
imports = [
./syncthing.nix
];
}

View File

@@ -0,0 +1,15 @@
{
pkgs,
device,
config,
...
}: {
services.syncthing = {
enable = true;
openDefaultPorts = true;
# user = "${device.user}";
# group = "${device.user}";
# dataDir = "${config.home.homeDirectory}/Sync";
# configDir = "${config.xdg.configHome}/syncthing";
};
}

View File

@@ -7,6 +7,7 @@
./minecraft.nix
./tailscale.nix
./vscode.nix
# ./syncthing.nix
# ./seafile.nix
# ./nextcloud.nix

View File

@@ -1,7 +1,7 @@
{...}: {
services = {
jellyfin = {
enable = true;
enable = false;
openFirewall = true;
};
caddy = {

View File

@@ -0,0 +1,15 @@
{
pkgs,
device,
xdg,
...
}: {
services.syncthing = {
enable = true;
openDefaultPorts = true;
user = "${device.user}";
group = "${device.user}";
dataDir = xdg.dataDirs.syncthing;
configDir = xdg.configDirs.syncthing;
};
}