Update build default.nix
This commit is contained in:
parent
2ddc809118
commit
7f216a1d71
2
build
2
build
@ -7,7 +7,7 @@ nixpkgs=$(nix eval --raw '(import ./nix/sources.nix).nixpkgs')
|
||||
|
||||
nix-store --realise $nixpkgs
|
||||
|
||||
export NIX_PATH=nixpkgs=$nixpkgs:nixos-config=/etc/nixos/configuration.nix
|
||||
export NIX_PATH=nixpkgs=$nixpkgs:nixos-config="`pwd`"
|
||||
|
||||
if [[ -n $INSIDE_EMACS ]]
|
||||
then
|
||||
|
@ -5,21 +5,19 @@
|
||||
# This is main nixos configuration
|
||||
# To use this configuration:
|
||||
# 1. Add your own secret.nix to this folder
|
||||
# 2. Replace /etc/nixos/configuration.nix with the following:
|
||||
# import /path/to/this/nixos-config "Vendor-Type"
|
||||
# 2. ./install or ./bootstrap
|
||||
# 3. Log in to application and services where neccesary
|
||||
|
||||
device: # This is the device we're on now
|
||||
{ config, pkgs, lib, ... }:
|
||||
let sources = import ./nix/sources.nix;
|
||||
in {
|
||||
in rec {
|
||||
imports = [
|
||||
"${./hardware-configuration}/${device}.nix"
|
||||
"${sources.home-manager}/nixos"
|
||||
(import ./modules device)
|
||||
];
|
||||
|
||||
inherit device;
|
||||
device = builtins.replaceStrings ["\n"] [""] (builtins.readFile /etc/hostname);
|
||||
|
||||
system.stateVersion = "18.03";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user