feat: Added services to home
This commit is contained in:
@@ -14,6 +14,7 @@
|
||||
./gui-programs
|
||||
./programs
|
||||
./scripts.nix
|
||||
./services
|
||||
]
|
||||
++ lib.optionals device.isLinux [./linux];
|
||||
# ++ lib.optionals.device.isMac [./macos];
|
||||
|
||||
@@ -34,6 +34,7 @@
|
||||
];
|
||||
home.packages = with pkgs;
|
||||
[
|
||||
nb
|
||||
(nixvim.makeNixvim (import ../../neovim))
|
||||
_1password-cli
|
||||
alejandra
|
||||
|
||||
5
home/services/default.nix
Normal file
5
home/services/default.nix
Normal file
@@ -0,0 +1,5 @@
|
||||
{...}: {
|
||||
imports = [
|
||||
./syncthing.nix
|
||||
];
|
||||
}
|
||||
15
home/services/syncthing.nix
Normal file
15
home/services/syncthing.nix
Normal 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";
|
||||
};
|
||||
}
|
||||
@@ -7,6 +7,7 @@
|
||||
./minecraft.nix
|
||||
./tailscale.nix
|
||||
./vscode.nix
|
||||
# ./syncthing.nix
|
||||
# ./seafile.nix
|
||||
|
||||
# ./nextcloud.nix
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{...}: {
|
||||
services = {
|
||||
jellyfin = {
|
||||
enable = true;
|
||||
enable = false;
|
||||
openFirewall = true;
|
||||
};
|
||||
caddy = {
|
||||
|
||||
15
nixos/mirai/services/syncthing.nix
Normal file
15
nixos/mirai/services/syncthing.nix
Normal 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;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user