You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, if I don't specify service.urbackup.dataset.images and service.urbackup.dataset.files, the activation of my config fails with one of these two error messages:
error: The option `environment.etc."urbackup/dataset".source' is used but not defined.
error: The option `environment.etc."urbackup/dataset_file".source' is used but not defined.
Workaround
Specifying an empty string for both attributes makes the error go away, without specifying any config I do not actually want.
Background
I am trying to set up your urbackup server module, which currently looks like this:
# flake.nix{description="xieve's nixos flake";inputs={nixpkgs={url="github:NixOS/nixpkgs/nixos-unstable";};nzbr={url="github:nzbr/nixos";};};outputs={self,nixpkgs,nzbr}@attrs: {nixosConfigurations={thegreatbelow=nixpkgs.lib.nixosSystem{system="x86_64-linux";specialArgs=attrs;# Pass inputs to modulesmodules=[nzbr.nixosModules."service/urbackup.nix"./thegreatbelow.nix];};};};}
I am moving away from a docker-based setup, but before I move all my files, I want to get this thing running as a proof of concept. These backups are not extremely critical, I am comfortable with "fuck around, find out".
I do not have a proposed solution for this, because I am not too sure myself what the best way to resolve this would be. I am very new to Nix.
The text was updated successfully, but these errors were encountered:
xieve
changed the title
urbackup2-server: dataset options are not actually optional
urbackup2-server: dataset options are not optional
Feb 20, 2024
Hey there, first of all: thank you for making this stuff accessible. Have you thought about contributing some of your packages to the official repos?
Issue
Since the dataset options are meant to be optional, I am assuming you were meaning to implement this config as optional by defaulting to
null
.However, if I don't specify
service.urbackup.dataset.images
andservice.urbackup.dataset.files
, the activation of my config fails with one of these two error messages:Workaround
Specifying an empty string for both attributes makes the error go away, without specifying any config I do not actually want.
Background
I am trying to set up your urbackup server module, which currently looks like this:
I am moving away from a docker-based setup, but before I move all my files, I want to get this thing running as a proof of concept. These backups are not extremely critical, I am comfortable with "fuck around, find out".
I do not have a proposed solution for this, because I am not too sure myself what the best way to resolve this would be. I am very new to Nix.
The text was updated successfully, but these errors were encountered: