Compare commits
2 Commits
0702387488
...
b4e97cb86e
Author | SHA1 | Date |
---|---|---|
Adrian Gunnar Lauterer | b4e97cb86e | |
Adrian Gunnar Lauterer | d5ed56f39a |
|
@ -149,7 +149,11 @@ fonts.packages = with pkgs; [
|
||||||
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
#allow electron 19 becasue of etcher
|
|
||||||
|
programs.dconf.enable = true; #needed for easyeffects for some reason
|
||||||
|
|
||||||
|
|
||||||
|
#allow electron 15 becasue of etcher
|
||||||
nixpkgs.config.permittedInsecurePackages = [
|
nixpkgs.config.permittedInsecurePackages = [
|
||||||
"electron-19.1.9"
|
"electron-19.1.9"
|
||||||
];
|
];
|
||||||
|
|
|
@ -94,12 +94,14 @@ in
|
||||||
|
|
||||||
sops.secrets."qbittorrent/interfaceAddress" = {
|
sops.secrets."qbittorrent/interfaceAddress" = {
|
||||||
restartUnits = [ "qbittorrent-nox.service" ];
|
restartUnits = [ "qbittorrent-nox.service" ];
|
||||||
|
mode = "0755";
|
||||||
};
|
};
|
||||||
|
|
||||||
sops.templates."qbittorrent/configuration" = {
|
sops.templates."qbittorrent/configuration" = {
|
||||||
content = configurationFile;
|
content = configurationFile;
|
||||||
path = "${path}/.config/qBittorrent/qBittorrent.conf";
|
#path = "${path}/.config/qBittorrent/qBittorrent.conf";
|
||||||
owner = "qbittorrent";
|
owner = "qbittorrent";
|
||||||
|
mode = "0755";
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -108,6 +110,7 @@ in
|
||||||
isNormalUser = true; #make this a normal user to be able to make files
|
isNormalUser = true; #make this a normal user to be able to make files
|
||||||
home = path;
|
home = path;
|
||||||
group = "media";
|
group = "media";
|
||||||
|
|
||||||
};
|
};
|
||||||
users.groups.qbittorrent = {};
|
users.groups.qbittorrent = {};
|
||||||
|
|
||||||
|
@ -117,6 +120,7 @@ in
|
||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
|
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
|
ExecStartPre = "${pkgs.bash}/bin/bash -c '${pkgs.coreutils}/bin/mkdir -p ${path} && ${pkgs.coreutils}/bin/chmod -R 755 ${path} && ${pkgs.coreutils}/bin/cp ${config.sops.templates."qbittorrent/configuration".path} ${path}/.config/qBittorrent/qBittorrent.conf'";
|
||||||
ExecStart = "${pkgs.qbittorrent-nox}/bin/qbittorrent-nox";
|
ExecStart = "${pkgs.qbittorrent-nox}/bin/qbittorrent-nox";
|
||||||
User = "qbittorrent";
|
User = "qbittorrent";
|
||||||
Group = "media";
|
Group = "media";
|
||||||
|
|
Loading…
Reference in New Issue