Giter Site home page Giter Site logo

nzbr / nixos Goto Github PK

View Code? Open in Web Editor NEW
14.0 2.0 1.0 85.35 MB

My NixOS System configurations

Nix 94.24% Shell 0.90% Python 0.67% CSS 0.92% PowerShell 2.43% C++ 0.83%
nixos nixos-configuration nix nixos-config wsl2 wsl wsl-environment nixos-wsl

nixos's Introduction

nixos's People

Contributors

nzbr avatar renovate[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

thexyno

nixos's Issues

urbackup2-server: dataset options are not optional

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 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 modules
                modules = [
                    nzbr.nixosModules."service/urbackup.nix"
                    ./thegreatbelow.nix
                ];
            };
        };
    };
}
# thegreatbelow.nix
{ config, pkgs, nzbr, ... }:

{
    # [...]
    nzbr.service.urbackup = {
        enable = true;
        backupfolder = "/mnt/user/urbackup/";
        config = {
            LOGFILE = "/mnt/user/appdata/binhex-urbackup/urbackup/log/urbackup.log";
        };
        package = nzbr.packages.x86_64-linux.urbackup2-server;
        dataset.images = ""; # WORKAROUND HERE
        dataset.files = ""; # WORKAROUND HERE
    };
    fileSystems."/var/urbackup" = {
        device = "/mnt/user/appdata/binhex-urbackup/urbackup";
        fsType = "none";
        options = [ "bind" ];
    };
    # [...]
}

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.

This repo is too impressive.

This is the best nix configuration repo I've seen. Please consider removing it from the internet, you're making the rest of us look bad.

Thanks.

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

github-actions
.github/workflows/on_iso.yml
  • actions/checkout v4
  • actions/upload-artifact v4
.github/workflows/on_main.yml
.github/workflows/on_pull_request.yml
.github/workflows/run_build_default_hosts.yml
  • actions/checkout v4
nix
flake.nix
  • nixpkgs nixos-24.05
regex
module/container/gitlab.nix
module/kubernetes/keycloak/default.nix
module/kubernetes/n8n.nix
module/kubernetes/openldap.nix
module/kubernetes/pingcheck.nix
module/kubernetes/plausible.nix
  • clickhouse/clickhouse-server 24.6.3.64-alpine
  • plausible/analytics v2.0
module/kubernetes/vaultwarden.nix
  • vaultwarden/server 1.31.0-alpine

  • Check this box to trigger a request for Renovate to run again on this repository

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.