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,5 +1,3 @@
{ config, lib, pkgs, ... }:
{ {
imports = [ imports = [
./etc.nix ./etc.nix

View file

@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }: { config, lib, ... }:
with lib; with lib;

View file

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

View file

@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }: { config, ... }:
let let
firewallcfg = config.machine.firewall; firewallcfg = config.machine.firewall;

View file

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

View file

@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }: { config, lib, ... }:
with lib; with lib;

View file

@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }: { config, lib, ... }:
with lib; with lib;

View file

@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }: { config, lib, ... }:
with lib; with lib;

View file

@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }: { lib, ... }:
with lib; with lib;

View file

@ -2,8 +2,6 @@
# your system. Help is available in the configuration.nix(5) man page # your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help). # and in the NixOS manual (accessible by running nixos-help).
{ config, pkgs, ... }:
{ {
imports = [ imports = [
./hardware-configuration.nix ./hardware-configuration.nix

View file

@ -1,4 +1,4 @@
{ config, lib, ... }: { lib, ... }:
with lib; with lib;

View file

@ -1,8 +1,6 @@
{ config, lib, pkgs, ... }: { pkgs, ... }:
let {
cfg = import ./configuration.nix;
in {
imports = [ imports = [
./hardware-configuration.nix ./hardware-configuration.nix
]; ];

View file

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

View file

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

View file

@ -1,7 +1,6 @@
{ config, lib, pkgs, ... }: { pkgs, ... }:
let let
localpkgs = import <nixpkgs-local> {};
musnix_channel = (fetchTarball "https://github.com/musnix/musnix/archive/master.tar.gz"); musnix_channel = (fetchTarball "https://github.com/musnix/musnix/archive/master.tar.gz");
# vaapiIntel = pkgs.vaapiIntel.override { enableHybridCodec = true; }; # vaapiIntel = pkgs.vaapiIntel.override { enableHybridCodec = true; };
in { in {
@ -26,7 +25,7 @@ in {
initrd.kernelModules = [ "hid-multitouch" ]; initrd.kernelModules = [ "hid-multitouch" ];
initrd.availableKernelModules = [ "hid-microsoft" "hid-multitouch" "xhci_pci" "nvme" "usb_storage" "sd_mod" ]; initrd.availableKernelModules = [ "hid-microsoft" "hid-multitouch" "xhci_pci" "nvme" "usb_storage" "sd_mod" ];
kernelModules = [ "kvm-intel" "hid-microsoft" "hid-multitouch" "uinput" ] ++ [ "snd-seq" "snd-rawmidi" ]; kernelModules = [ "kvm-intel" "hid-microsoft" "hid-multitouch" "uinput" ];
kernel.sysctl = { "fs.inotify.max_user_watches" = 524288; }; kernel.sysctl = { "fs.inotify.max_user_watches" = 524288; };
kernelParams = [ "threadirq" ]; kernelParams = [ "threadirq" ];
extraModulePackages = [ ]; extraModulePackages = [ ];

View file

@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }: { lib, ... }:
with lib; with lib;

View file

@ -2,8 +2,6 @@
# your system. Help is available in the configuration.nix(5) man page # your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help). # and in the NixOS manual (accessible by running nixos-help).
{ config, pkgs, ... }:
{ {
imports = [ imports = [
./hardware-configuration.nix ./hardware-configuration.nix

View file

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

View file

@ -1,4 +1,4 @@
{ config, lib, ... }: { lib, ... }:
with lib; with lib;

View file

@ -1,4 +1,4 @@
{ config, pkgs, lib, ... }: { lib, ... }:
with lib; with lib;

View file

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

View file

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

View file

@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }: { config, lib, ... }:
with lib; with lib;
@ -8,8 +8,6 @@ mkIf (elem "containers" config.machine.services) {
hostAddress = "192.168.100.10"; hostAddress = "192.168.100.10";
localAddress = "192.168.100.11"; localAddress = "192.168.100.11";
config = config =
{ config, lib, pkgs, ... }:
{ {
imports = [ imports = [
../machines/CDServer/options.nix ../machines/CDServer/options.nix

View file

@ -1,5 +1,3 @@
{ config, lib, pkgs, ... }:
{ {
imports = [ imports = [
./cups.nix ./cups.nix

View file

@ -1,8 +0,0 @@
{ config, pkgs, ... }:
{
services.ejabberd = {
enable = true;
imagemagick = true;
};
}

View file

@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }: { config, lib, ... }:
# mostly taken from https://github.com/davidak/nixos-config/blob/master/services/fail2ban.nix # mostly taken from https://github.com/davidak/nixos-config/blob/master/services/fail2ban.nix
with lib; with lib;

View file

@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }: { config, lib, ... }:
with lib; with lib;

View file

@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }: { config, lib, ... }:
# hydra user needs to be manually crated # hydra user needs to be manually crated
# sudo -u hydra -s # sudo -u hydra -s
@ -10,7 +10,7 @@
with lib; with lib;
mkIf (elem "hydra" config.machine.services) rec { mkIf (elem "hydra" config.machine.services) {
# also take a look at ../conf/nix.nix # also take a look at ../conf/nix.nix
nix.buildMachines = [ nix.buildMachines = [
{ {

View file

@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }: { config, lib, ... }:
with lib; with lib;

View file

@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }: { config, lib, ... }:
with lib; with lib;

View file

@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }: { config, lib, ... }:
# For reference: # For reference:
# https://infosec.mozilla.org/guidelines/openssh.html # https://infosec.mozilla.org/guidelines/openssh.html

View file

@ -1,5 +1,3 @@
{ config, pkgs, ... }:
{ {
services.prosody = { services.prosody = {
enable = true; enable = true;

View file

@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }: { config, lib, ... }:
with lib; with lib;