From b13796a5a25c1f798fe60d1e892ef6d1e9a62308 Mon Sep 17 00:00:00 2001 From: notgne2 Date: Tue, 30 Mar 2021 15:13:39 -0700 Subject: [PATCH 1/2] export base16Split from colors module --- home-manager/modules/colors.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/home-manager/modules/colors.nix b/home-manager/modules/colors.nix index ade5ced..18d7a65 100644 --- a/home-manager/modules/colors.nix +++ b/home-manager/modules/colors.nix @@ -41,6 +41,7 @@ let mustache = scheme: name: src: pkgs.stdenv.mkDerivation ( { + # TODO add template name name = lib.strings.sanitizeDerivationName name; inherit src; data = pkgs.writeText "${name}-data" (builtins.toJSON scheme); @@ -74,6 +75,11 @@ in type = types.attrsOf (types.attrsOf types.int); }; + base16Split = mkOption { + readOnly = true; + type = types.attrsOf (types.attrsOf types.str); + }; + base16 = mkOption { readOnly = true; type = types.attrsOf types.str; @@ -197,6 +203,7 @@ in # Read only utility attributes colors.base16 = cfg.favColors.base16; colors.base16Rgb = builtins.mapAttrs hexToRgb cfg.favColors.base16; + colors.base16Split = builtins.mapAttrs splitHex cfg.favColors.base16; # Element xdg.configFile."Riot/config.json".text = builtins.toJSON elementConfig; From d3af57b733c018154e13fffb990258de671e9770 Mon Sep 17 00:00:00 2001 From: notgne2 Date: Wed, 7 Apr 2021 13:42:29 -0700 Subject: [PATCH 2/2] Substitute wineWow for wine64, and make Steam optional, both to circumvent build issues with Steam upstream --- modules/ezpc.nix | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/modules/ezpc.nix b/modules/ezpc.nix index 6a3d0a6..76e4770 100644 --- a/modules/ezpc.nix +++ b/modules/ezpc.nix @@ -84,23 +84,26 @@ let steam-run = steam.run; - newwine = (pkgs.wineFull.override { wineBuild = "wineWow"; wineRelease = "staging"; }); + newwine = (pkgs.wineFull.override { wineBuild = "wine64"; wineRelease = "staging"; }); newwinetricks = pkgs.winetricks.override { wine = newwine; }; - oldwine = (pkgs.wineFull.override { wineBuild = "wineWow"; }); + oldwine = (pkgs.wineFull.override { wineBuild = "wine64"; }); oldwinetricks = pkgs.winetricks.override { wine = oldwine; }; in with pkgs; ([ - steam - steam-run xlibs.xf86inputjoystick oldwine oldwinetricks + ] ++ (if !cfg.flatSteam then [ + steam + steam-run (writeScriptBin "steam-run-native" '' #!${pkgs.stdenv.shell} ${(steam.override { nativeOnly = true; }).run}/bin/steam-run $@ '') - ] ++ ( + ] else [ + # steam-run-native + ]) ++ ( if cfg.newWine then [ ( pkgs.runCommand "new-wine-stuff" @@ -142,6 +145,12 @@ in description = "If this PC is used for gaming"; }; + flatSteam = mkOption { + type = types.bool; + default = false; + description = "If you use the flatpak Steam instead of NixOS"; + }; + touchscreen = mkOption { type = types.bool; default = false;