feat: Added nextcloudcmd
This commit is contained in:
@@ -6,15 +6,31 @@
|
|||||||
}: {
|
}: {
|
||||||
imports = [
|
imports = [
|
||||||
./tailscale.nix
|
./tailscale.nix
|
||||||
|
../home/programs/helix.nix
|
||||||
|
../home/programs/sops.nix
|
||||||
];
|
];
|
||||||
programs = {
|
programs = {
|
||||||
home-manager.enable = true;
|
home-manager.enable = true;
|
||||||
bash.enable = true;
|
bash = {
|
||||||
helix = {
|
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.evil-helix;
|
settings = {
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
systemd.user.services = {
|
||||||
|
nextcloudcmd = {
|
||||||
|
Unit = {
|
||||||
|
Description = "Nextcloud Client";
|
||||||
|
};
|
||||||
|
Service = {
|
||||||
|
ExecStart = "${pkgs.nextcloud-client}/bin/nextcloudcmd -n /home/deck/Nextcloud https://cloud.darksailor.dev";
|
||||||
|
Restart = "on-failure";
|
||||||
|
RestartSec = "5s";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
home = {
|
home = {
|
||||||
username = "deck";
|
username = "deck";
|
||||||
homeDirectory = "/home/deck";
|
homeDirectory = "/home/deck";
|
||||||
@@ -22,12 +38,15 @@
|
|||||||
_1password-cli
|
_1password-cli
|
||||||
just
|
just
|
||||||
];
|
];
|
||||||
stateVersion = "24.11";
|
home.file.".ssh/rc".text = ''
|
||||||
|
export PATH="/nix/var/nix/profiles/default/bin:$PATH"
|
||||||
|
'';
|
||||||
activation.tailscale-service = let
|
activation.tailscale-service = let
|
||||||
tailscale_service = pkgs.writeText "tailscaled.service" (builtins.replaceStrings ["/usr/bin/tailscaled"] ["${pkgs.tailscale}/bin/tailscaled"] (builtins.readFile ./tailscaled.service));
|
tailscale_service = pkgs.writeText "tailscaled.service" (builtins.replaceStrings ["/usr/bin/tailscaled"] ["${pkgs.tailscale}/bin/tailscaled"] (builtins.readFile ./tailscaled.service));
|
||||||
in
|
in
|
||||||
lib.hm.dag.entryAfter ["writeBoundary"] ''
|
lib.hm.dag.entryAfter ["writeBoundary"] ''
|
||||||
run echo cp ${tailscale_service} /etc/systemd/system/tailscaled.service
|
run echo cp ${tailscale_service} /etc/systemd/system/tailscaled.service
|
||||||
'';
|
'';
|
||||||
|
stateVersion = "24.11";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user