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