Skip to content

Shados/nixos-config

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

ShadosNet Generic NixOS Baseline Configuration

Contains various defaults I want, and NixOS packages/modules/extensions to existing modules (that aren't suitable for upstreaming). My individual systems generally have their own (private) repo for /etc/nixos that has this as a submodule.

Should be mostly self-documenting. Start with default.nix, of course. I'm aware I have (salted and hashed) passwords in the open, but using them requires you either have my SSH keys or access to my physical hardware (and the ability to generate SHA-512 collisions), in which case you can already screw me over.

License for my content herein is, as per the LICENSE file, 2-clause BSD. Some files are or contain content from others, they contain information on their licensing and/or attribution.

Example Usage

/etc/nixos/configuration.nix:

{ config, pkgs, ... }:
{
  imports = [
    ./modules
    ./hardware
  ];

  system.stateVersion = "17.03";

  networking.hostName = "example.shados.net";

  services = {
    quassel.enable = true;
    postgresql.enable = true;
    nginx.enable = true;
    postgresqlBackup = {
      enable = true;
      databases = [ "postgres" "quassel" ];
      location = "/srv/backup/postgresql";
      period = "00 04 * * *";
    };
  };

  sn.backup = {
    enable = true;
    folders = [
      "/etc/nixos"
      "/srv/backup"
      "/srv/http"
      "/srv/quassel"
    ];
  };
}

About

Generic modules and defaults for my NixOS systems.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published