Add examples to README and add hosts to namespace
This commit is contained in:
parent
cd27531edf
commit
87fc6df44f
3 changed files with 27 additions and 5 deletions
25
README.md
25
README.md
|
@ -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";
|
||||
}
|
||||
```
|
||||
|
|
|
@ -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
5
hosts/default.nix
Normal file
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
ifrit = ./ifrit;
|
||||
gorgon = ./gorgon;
|
||||
surgat = ./surgat;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue