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";
|
||||
}
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue