# Edit this configuration file to define what should be installed on # your system. Help is available in the configuration.nix(5) man page # and in the NixOS manual (accessible by running ‘nixos-help’). { config, pkgs, ... }: let gitRev = "d9634b4788a69eba897a5efb826f313942a860e2"; nixpkgs = fetchTarball "https://github.com/nyanloutre/nixpkgs/archive/${gitRev}.tar.gz"; in { imports = [ ../common.nix ./hardware-configuration.nix ./users.nix ./services.nix ]; boot = { loader = { systemd-boot.enable = true; efi.canTouchEfiVariables = true; }; supportedFilesystems = [ "zfs" ]; tmpOnTmpfs = true; }; nix.nixPath = [ "nixpkgs=${nixpkgs}" "nixos-config=/etc/nixos/configuration.nix" ]; nixpkgs.config.allowUnfree = false; nixpkgs.config.allowUnfreePredicate = (pkg: builtins.elem (builtins.parseDrvName pkg.name).name [ "factorio-headless" "perl5.28.1-slimserver" ]); services.zfs = { autoSnapshot.enable = true; autoScrub.enable = true; }; networking = { hostName = "loutreos"; # Define your hostname. hostId = "7e66e347"; }; nixpkgs.overlays = [ (import ../../overlays/riot-web.nix) ]; services.openssh = { enable = true; permitRootLogin = "no"; passwordAuthentication = false; }; networking.firewall = { allowedTCPPorts = [ ]; allowedUDPPorts = [ ]; enable = true; }; security.sudo.wheelNeedsPassword = false; system.stateVersion = "18.03"; }