Add examples to README and add hosts to namespace

This commit is contained in:
Tim Schubert 2020-12-30 17:06:02 +01:00
parent cd27531edf
commit 87fc6df44f
No known key found for this signature in database
GPG key ID: 99658A3EB5CD7C13
3 changed files with 27 additions and 5 deletions

View file

@ -1,8 +1,4 @@
# nixpkgs configuration
This repository contains nix modules, overlays and packages for my home and work setups.
It requires [home-manager](https://github.com/nix-community/home-manager) to be set up and available in your path. Private parts of the configuration are not part of the repo. I include them from `home.nix` like so:
# nix configuration
```nix
{
@ -12,3 +8,22 @@ It requires [home-manager](https://github.com/nix-community/home-manager) to be
];
}
```
```nix
{ config, pkgs, lib, ... }:
let
dadada = builtins.fetchGit {
url = "/home/dadada/nix-config.git";
ref = "main";
rev = "4337055f4512c390b99d631e7ed1db0282e82d17";
} {};
in {
imports = [
./hardware-configuration.nix
dadada.hosts.gorgon
];
system.stateVersion = "20.03";
}
```

View file

@ -10,6 +10,8 @@ with pkgs;
profiles = import ./modules/profiles;
hmProfiles = import ./modules/home/profiles;
hosts = import ./hosts;
tubslatex = callPackage ./pkgs/tubslatex {};
keys = callPackage ./pkgs/keys {};
}

5
hosts/default.nix Normal file
View file

@ -0,0 +1,5 @@
{
ifrit = ./ifrit;
gorgon = ./gorgon;
surgat = ./surgat;
}