Clean up in accordance with unofficial nix-linter.

This commit is contained in:
Kevin Baensch 2019-05-09 18:28:40 +02:00
parent cfa7222f4d
commit 0ddcaf4085
34 changed files with 49 additions and 75 deletions

View file

@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }:
{ config, lib, ... }:
{
nixpkgs.config = {

View file

@ -1,14 +1,11 @@
{ stable ? import <nixos-stable>,
unstable ? import <nixos-unstable>,
gitpkgs ? import /nixpkgs/default.nix,
config, lib, pkgs, ... }:
{ config, lib, pkgs, ... }:
with lib;
let
cfg = config.machine;
optPkgs = package: pkgstring: optionals (elem pkgstring cfg.pkgs) package;
gitpkgs = import /nixpkgs/default.nix {};
gitpkgs = import /nixpkgs {};
# Programms I'm likely to want on every machine and/or may execute as root
base = with pkgs; [