Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
dotfiles
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jens Nolte
dotfiles
Commits
19cc83b6
Commit
19cc83b6
authored
May 18, 2021
by
Jens Nolte
Browse files
Options
Downloads
Patches
Plain Diff
Add 'with lib;'
parent
e8b9b17f
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
layers/base.nix
+4
-2
4 additions, 2 deletions
layers/base.nix
with
4 additions
and
2 deletions
layers/base.nix
+
4
−
2
View file @
19cc83b6
...
@@ -2,6 +2,8 @@
...
@@ -2,6 +2,8 @@
{
pkgs
,
lib
,
...
}:
{
pkgs
,
lib
,
...
}:
with
lib
;
let
let
root
=
pkgs
.
writeShellScriptBin
"root"
''
root
=
pkgs
.
writeShellScriptBin
"root"
''
if [ -n "$1" ] ; then
if [ -n "$1" ] ; then
...
@@ -23,13 +25,13 @@ in
...
@@ -23,13 +25,13 @@ in
# compatible, in order to avoid breaking some software such as database
# compatible, in order to avoid breaking some software such as database
# servers. You should change this only after NixOS release notes say you
# servers. You should change this only after NixOS release notes say you
# should.
# should.
system
.
stateVersion
=
lib
.
mkDefault
"20.09"
;
# Did you read the comment?
system
.
stateVersion
=
mkDefault
"20.09"
;
# Did you read the comment?
# Is it worth to specify this where it is needed instead of configuring it globally? Not sure yet.
# Is it worth to specify this where it is needed instead of configuring it globally? Not sure yet.
nixpkgs
.
config
.
allowUnfree
=
true
;
nixpkgs
.
config
.
allowUnfree
=
true
;
# Always run the latest kernel
# Always run the latest kernel
boot
.
kernelPackages
=
lib
.
mkDefault
pkgs
.
linuxPackages_latest
;
boot
.
kernelPackages
=
mkDefault
pkgs
.
linuxPackages_latest
;
boot
.
tmpOnTmpfs
=
true
;
boot
.
tmpOnTmpfs
=
true
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
sign in
to comment