From d9378487d3524e13d4be34f4447ed4f94d23c825 Mon Sep 17 00:00:00 2001 From: tristan Date: Tue, 9 May 2023 13:53:45 +0100 Subject: [PATCH] fix displays and add super tux kart --- hardware/zenix.nix | 27 +++++++++++++++------------ lib/modules/gamer.nix | 2 +- 2 files changed, 16 insertions(+), 13 deletions(-) diff --git a/hardware/zenix.nix b/hardware/zenix.nix index 6a380d4..c136f1a 100644 --- a/hardware/zenix.nix +++ b/hardware/zenix.nix @@ -67,18 +67,21 @@ nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; - displays = [ - { - name = "DP-1"; - resolution = {x=1920;y=1080;freq=144;}; - wallpaper = "~/Pictures/backgrounds/demonslayer.jpg"; - } - { - name = "HDMI-A-1"; - resolution = {x=1920;y=1080;freq=60;}; - wallpaper = "~/Pictures/backgrounds/nier.jpg"; - } - ]; + displays = { + enable = true; + displays = [ + { + name = "DP-1"; + resolution = {x=1920;y=1080;freq=144;}; + wallpaper = "~/Pictures/backgrounds/demonslayer.jpg"; + } + { + name = "HDMI-A-1"; + resolution = {x=1920;y=1080;freq=60;}; + wallpaper = "~/Pictures/backgrounds/nier.jpg"; + } + ]; + }; hardware.keyboard.zsa.enable = true; diff --git a/lib/modules/gamer.nix b/lib/modules/gamer.nix index b3a2d98..2495463 100644 --- a/lib/modules/gamer.nix +++ b/lib/modules/gamer.nix @@ -11,11 +11,11 @@ with lib; home.packages = with pkgs; [ airshipper minetest + superTuxKart ]; }]; nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [ - # gamer time "steam" "steam-run" "steam-original"