From 87fc6df44f1548d56ea1206c691f8df284affd60 Mon Sep 17 00:00:00 2001 From: dadada Date: Wed, 30 Dec 2020 17:06:02 +0100 Subject: [PATCH] Add examples to README and add hosts to namespace --- README.md | 25 ++++++++++++++++++++----- default.nix | 2 ++ hosts/default.nix | 5 +++++ 3 files changed, 27 insertions(+), 5 deletions(-) create mode 100644 hosts/default.nix diff --git a/README.md b/README.md index be53de3..227e5f8 100644 --- a/README.md +++ b/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"; +} +``` diff --git a/default.nix b/default.nix index 5ab44cf..780f4db 100644 --- a/default.nix +++ b/default.nix @@ -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 {}; } diff --git a/hosts/default.nix b/hosts/default.nix new file mode 100644 index 0000000..ade7342 --- /dev/null +++ b/hosts/default.nix @@ -0,0 +1,5 @@ +{ + ifrit = ./ifrit; + gorgon = ./gorgon; + surgat = ./surgat; +}