Skip to content
Snippets Groups Projects
Commit 19cc83b6 authored by Jens Nolte's avatar Jens Nolte
Browse files

Add 'with lib;'

parent e8b9b17f
No related branches found
No related tags found
No related merge requests found
...@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment