From 5c68dbde55056cb8bd05c0ff862b6f2ed8336719 Mon Sep 17 00:00:00 2001 From: Akshay Date: Mon, 26 Aug 2024 11:41:50 +0100 Subject: fmt --- hosts/mantis/configuration.nix | 71 ++++++++++++++++++++++++++++++++++++------ 1 file changed, 62 insertions(+), 9 deletions(-) (limited to 'hosts/mantis/configuration.nix') diff --git a/hosts/mantis/configuration.nix b/hosts/mantis/configuration.nix index c774eef..d21a7b1 100644 --- a/hosts/mantis/configuration.nix +++ b/hosts/mantis/configuration.nix @@ -4,13 +4,16 @@ { imports = - [ # Include the results of the hardware scan. + [ + # Include the results of the hardware scan. ./hardware-configuration.nix ]; # Use the systemd-boot EFI boot loader. boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = true; + boot.kernelPackages = pkgs.linuxPackages_latest; + boot.kernelParams = [ "i915.force_probe=4650" ]; networking.hostName = "mantis"; time.timeZone = "Europe/London"; @@ -19,12 +22,30 @@ prompt better-text-objs vim-colors-plain + niri ]; + nixpkgs.config = { + "2bwm".patches = [ + ../../patches/2bwm/nerd-patch.diff + ]; + + st = { + conf = builtins.readFile ../../programs/st/config.h; + extraLibs = with pkgs; [ harfbuzz ]; + patches = [ + ../../patches/st/xres.diff + ../../patches/st/bright.diff + ../../patches/st/ligatures.diff + ]; + }; + }; + + programs.niri.enable = true; users.users.op = { isNormalUser = true; - extraGroups = [ "wheel" ]; + extraGroups = [ "wheel" "docker" ]; packages = with pkgs; [ qutebrowser tree @@ -33,17 +54,49 @@ home = "/home/op"; }; - environment.systemPackages = with pkgs; [ - man-pages - man-pages-posix - (lib.hiPrio pkgs.bashInteractive_5) - ]; + environment = { + systemPackages = with pkgs; [ + man-pages + man-pages-posix + (lib.hiPrio pkgs.bashInteractive_5) + _2bwm + ]; + variables = { + QT_SCALE_FACTOR_ROUNDING_POLICY = "RoundPreferFloor"; + }; + }; services = { - openssh.enable = true; - tailscale.enable = true; + openssh = { + enable = true; + settings = { + X11Forwarding = true; + PrintMotd = true; + }; + }; + tailscale.enable = true; + libinput.enable = true; + xserver = { + enable = true; + displayManager.startx.enable = true; + }; }; + hardware.opengl.extraPackages = [ + pkgs.vpl-gpu-rt + ]; + + services.pipewire = { + enable = true; + alsa.enable = true; + alsa.support32Bit = true; + pulse.enable = true; + jack.enable = true; + }; + + + virtualisation.docker.enable = true; + nix.settings.experimental-features = [ "nix-command" "flakes" ]; # This option defines the first version of NixOS you have installed on this particular machine, -- cgit v1.2.3