Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- { config, pkgs, ... }:
- {
- nixpkgs.config = {
- allowUnfree = true;
- packageOverrides = pkgs: {
- docker =
- (
- import
- (
- builtins.fetchTarball {
- url = https://github.com/NixOS/nixpkgs/archive/ff2b0316b4d0c861790fb407aa827a8eaf2634c5.tar.gz;
- sha256="0kd9s27zv19i2mk3f46cjsy92jiv56nhfxay7s9av5nx7l7imy1h";
- }
- )
- {
- config = {};
- }
- ).docker;
- };
- chromium.enableWideVine = true;
- };
- # Use the systemd-boot EFI boot loader.
- boot.loader.systemd-boot.enable = true;
- boot.loader.efi.canTouchEfiVariables = true;
- boot.supportedFilesystems = ["zfs"];
- networking.nameservers = [
- "1.1.1.1"
- "1.0.0.1"
- ];
- i18n = {
- consoleFont = "Lat2-Terminus16";
- consoleKeyMap = "us";
- defaultLocale = "en_US.UTF-8";
- };
- time.timeZone = "Europe/Amsterdam";
- environment.pathsToLink = [ "/share/zsh" ];
- programs.gnupg.agent = { enable = true; enableSSHSupport = true; };
- # Enable the OpenSSH daemon.
- services.openssh.enable = true;
- services.printing.enable = true;
- virtualisation.docker.enable = true;
- virtualisation.libvirtd.enable = true;
- # networking.firewall.allowedTCPPorts = [ ... ];
- # networking.firewall.allowedUDPPorts = [ ... ];
- # Or disable the firewall altogether.
- networking.firewall.enable = false;
- # Enable sound.
- sound.enable = true;
- hardware.pulseaudio.enable = true;
- # Enable the X11 windowing system.
- services.xserver.enable = true;
- services.xserver.layout = "us";
- # Define a user account. Don't forget to set a password with ‘passwd’.
- users.users.fabi = {
- extraGroups = ["wheel" "docker" "libvirtd"];
- isNormalUser = true;
- uid = 1000;
- shell = pkgs.zsh;
- };
- # This value determines the NixOS release with which your system is to be
- # compatible, in order to avoid breaking some software such as database
- # servers. You should change this only after NixOS release notes say you
- # should.
- system.stateVersion = "18.09"; # Did you read the comment?
- swapDevices = [{device = "/dev/zvol/rpool/swap"; size = 8000;}];# zfs create -V 8G -b $(getconf PAGESIZE) -o logbias=throughput -o sync=always -o primarycache=metadata -o com.sun:auto-snapshot=false zpool/swap
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement