mwahahahaha, have the orome config building! on to manwe
This commit is contained in:
parent
3a2f52f45e
commit
af58cfb4ab
30 changed files with 259 additions and 199 deletions
|
@ -5,7 +5,5 @@ in
|
|||
{
|
||||
options.modules.services = let
|
||||
inherit (lib.options) mkEnableOption;
|
||||
in {
|
||||
enable = mkEnableOption "Enable all services";
|
||||
};
|
||||
in {};
|
||||
}
|
||||
|
|
|
@ -125,10 +125,7 @@ in
|
|||
|
||||
networking.firewall.allowedTCPPorts = [ 80 443 ];
|
||||
|
||||
modules.virtualisation = {
|
||||
enable = true;
|
||||
podman.enable = true;
|
||||
};
|
||||
modules.virtualisation.podman.enable = true;
|
||||
|
||||
virtualisation = {
|
||||
oci-containers = {
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
{ config, options, lib, pkgs, ... }:
|
||||
let
|
||||
inherit (lib.modules) mkIf;
|
||||
|
||||
user = "nextcloud";
|
||||
in
|
||||
{
|
||||
options.modules.services.nextcloud = let
|
||||
|
@ -10,7 +12,14 @@ in
|
|||
};
|
||||
|
||||
config = mkIf config.modules.services.nextcloud.enable {
|
||||
home.file.".netrc".text = ''
|
||||
users.users.${user} = {
|
||||
name = user;
|
||||
isSystemUser = true;
|
||||
home = "/home/${user}";
|
||||
group = user;
|
||||
};
|
||||
|
||||
home-manager.users.${user}.home.file.".netrc".text = ''
|
||||
login root
|
||||
password KaasIsAwesome!
|
||||
'';
|
||||
|
@ -23,7 +32,7 @@ in
|
|||
};
|
||||
Service = {
|
||||
Type = "simple";
|
||||
ExecStart = "${pkgs.nextcloud-client}/bin/nextcloudcmd -h -n --path /var/music /home/chris/Music https://cloud.kruining.eu";
|
||||
ExecStart = "${pkgs.nextcloud-client}/bin/nextcloudcmd -h -n --path /var/music /home/${user}/Music https://cloud.kruining.eu";
|
||||
TimeoutStopSec = "180";
|
||||
KillMode = "process";
|
||||
KillSignal = "SIGINT";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue