Skip to content

Commit

Permalink
updated flake
Browse files Browse the repository at this point in the history
  • Loading branch information
rasmus-kirk committed Feb 21, 2024
1 parent cac2199 commit 6923436
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 13 deletions.
12 changes: 6 additions & 6 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 0 additions & 5 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,7 @@
};

inputs = {
#nixpkgs.url = "github:nixos/nixpkgs/22.11";
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
nixpkgs-flood.url = "github:3JlOy-PYCCKUi/nixpkgs/flood-module";
#nixpkgs-unstable.url = "github:nixos/nixpkgs/nixpkgs-unstable";

home-manager.url = "github:nix-community/home-manager";

flake-parts = {
url = "github:hercules-ci/flake-parts";
Expand Down
8 changes: 6 additions & 2 deletions nixarr/prowlarr/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ with lib; let
nixarr = config.nixarr;
cfg = config.nixarr.prowlarr;
in {
imports = [
./prowlarr-module
];

options.nixarr.prowlarr = {
enable = mkEnableOption "Enable the Prowlarr service.";

Expand All @@ -29,7 +33,7 @@ in {
config = mkIf cfg.enable {
util.services.prowlarr = mkIf (!cfg.vpn.enable) {
enable = true;
dataDir = cfg.statedir;
dataDir = cfg.stateDir;
};

util.vpnnamespace.portMappings = [
Expand All @@ -45,7 +49,7 @@ in {
autoStart = true;
ephemeral = true;
extraFlags = ["--network-namespace-path=/var/run/netns/wg"];
bindMounts."${cfg.statedir}".isReadOnly = false;
bindMounts."${cfg.stateDir}".isReadOnly = false;

config = {
users.groups.prowlarr = {};
Expand Down
File renamed without changes.

0 comments on commit 6923436

Please sign in to comment.