Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Honeypot
nixfiles
Commits
ca5d9550
Verified
Commit
ca5d9550
authored
Oct 06, 2021
by
Matthias Adamczyk
Browse files
Update documentation in default.nix
parent
978bff0d
Changes
1
Hide whitespace changes
Inline
Side-by-side
default.nix
View file @
ca5d9550
# sources.nix contains the nixpkgs checkout that is going
# to be used on all hosts.
# This file defines which commands are available
# To run a command:
# $ nix-build -A isoImage
let
# sources.nix contains the nixpkgs checkout that is going
# to be used on all hosts.
sources
=
import
./nix/sources.nix
;
pkgs
=
import
sources
.
nixpkgs
{
system
=
"x86_64-linux"
;
...
...
@@ -12,14 +15,12 @@ let
};
in
{
inherit
sources
pkgs
;
inherit
(
pkgs
)
lib
;
# inherit lib from pkgs
inherit
(
pkgs
)
lib
;
#
the syntax means: "
inherit lib from pkgs
"
#
Pass the pkgs from sources.nix to each module under lib/
#
The following commands are available:
kexec_tarball
=
import
./lib/kexec-tarball.nix
{
inherit
pkgs
;
};
isoImage
=
import
./lib/iso-image.nix
{
inherit
pkgs
;
};
deploy
=
import
./lib/deploy.nix
{
inherit
pkgs
;
};
# not needed right now
#unlock = import ./lib/unlock-fde.nix { inherit pkgs; };
#unlock = import ./lib/unlock-fde.nix { inherit pkgs; }; # not needed right now
}
//
(
import
./lib/hosts.nix
{
inherit
pkgs
;
})
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment