From ea0ea889527601b4a9fbc6e3aeb87b6f26b188dd Mon Sep 17 00:00:00 2001 From: Gabriel Ebner Date: Mon, 28 Aug 2017 19:19:07 +0200 Subject: [PATCH] petalius: initial config --- petalius.nix | 72 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 petalius.nix diff --git a/petalius.nix b/petalius.nix new file mode 100644 index 0000000..23c0d92 --- /dev/null +++ b/petalius.nix @@ -0,0 +1,72 @@ +{ config, pkgs, ... }: + +{ + imports = + [ + ./common.nix + ./large-sw.nix + ./uefi.nix + ./fstrim.nix + ]; + + environment.etc."lvm/lvm.conf".text = '' + devices { + issue_discards = 1 + } + ''; + boot.initrd.luks.devices = [ + { + name = "nvme0n1p2"; + device = "/dev/disk/by-uuid/5ca3d7ec-3f9e-4a08-8bc2-b26bfc3459c5"; + preLVM = true; + allowDiscards = true; + } + ]; + + services.xserver = { + libinput.enable = true; + config = '' + Section "InputClass" + Identifier "touchpad" + Driver "libinput" + MatchDevicePath "/dev/input/event*" + MatchIsPointer "true" + EndSection + ''; + + videoDrivers = [ "modesetting" ]; + useGlamor = true; + }; + programs.light.enable = true; + + services.tlp.enable = true; + + networking.hostName = "petalius"; + networking.hostId = "cf58caa9"; + + systemd.services.ModemManager.enable = true; + + hardware.opengl.extraPackages = [ pkgs.vaapiIntel ]; + + nixpkgs.config.packageOverrides = pkgs: rec { + }; + + environment.systemPackages = with pkgs; [ + unison + ]; + + virtualisation.docker = { + enable = true; + storageDriver = "overlay2"; + }; + users.extraUsers.gebner.extraGroups = [ "docker" ]; + + #virtualisation.virtualbox.host.enable = true; + + # boot.kernelPackages = pkgs.lib.mkOverride 10 pkgs.linuxPackages; + + # time.timeZone = pkgs.lib.mkOverride 10 "Europe/London"; + + #services.avahi.nssmdns = true; + +}