Compare commits
2 Commits
df75571c56
...
d3af57b733
Author | SHA1 | Date | |
---|---|---|---|
d3af57b733 | |||
b13796a5a2 |
@ -41,6 +41,7 @@ let
|
|||||||
mustache = scheme: name: src:
|
mustache = scheme: name: src:
|
||||||
pkgs.stdenv.mkDerivation (
|
pkgs.stdenv.mkDerivation (
|
||||||
{
|
{
|
||||||
|
# TODO add template name
|
||||||
name = lib.strings.sanitizeDerivationName name;
|
name = lib.strings.sanitizeDerivationName name;
|
||||||
inherit src;
|
inherit src;
|
||||||
data = pkgs.writeText "${name}-data" (builtins.toJSON scheme);
|
data = pkgs.writeText "${name}-data" (builtins.toJSON scheme);
|
||||||
@ -74,6 +75,11 @@ in
|
|||||||
type = types.attrsOf (types.attrsOf types.int);
|
type = types.attrsOf (types.attrsOf types.int);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
base16Split = mkOption {
|
||||||
|
readOnly = true;
|
||||||
|
type = types.attrsOf (types.attrsOf types.str);
|
||||||
|
};
|
||||||
|
|
||||||
base16 = mkOption {
|
base16 = mkOption {
|
||||||
readOnly = true;
|
readOnly = true;
|
||||||
type = types.attrsOf types.str;
|
type = types.attrsOf types.str;
|
||||||
@ -197,6 +203,7 @@ in
|
|||||||
# Read only utility attributes
|
# Read only utility attributes
|
||||||
colors.base16 = cfg.favColors.base16;
|
colors.base16 = cfg.favColors.base16;
|
||||||
colors.base16Rgb = builtins.mapAttrs hexToRgb cfg.favColors.base16;
|
colors.base16Rgb = builtins.mapAttrs hexToRgb cfg.favColors.base16;
|
||||||
|
colors.base16Split = builtins.mapAttrs splitHex cfg.favColors.base16;
|
||||||
|
|
||||||
# Element
|
# Element
|
||||||
xdg.configFile."Riot/config.json".text = builtins.toJSON elementConfig;
|
xdg.configFile."Riot/config.json".text = builtins.toJSON elementConfig;
|
||||||
|
@ -84,23 +84,26 @@ let
|
|||||||
|
|
||||||
steam-run = steam.run;
|
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; };
|
newwinetricks = pkgs.winetricks.override { wine = newwine; };
|
||||||
|
|
||||||
oldwine = (pkgs.wineFull.override { wineBuild = "wineWow"; });
|
oldwine = (pkgs.wineFull.override { wineBuild = "wine64"; });
|
||||||
oldwinetricks = pkgs.winetricks.override { wine = oldwine; };
|
oldwinetricks = pkgs.winetricks.override { wine = oldwine; };
|
||||||
in
|
in
|
||||||
with pkgs; ([
|
with pkgs; ([
|
||||||
steam
|
|
||||||
steam-run
|
|
||||||
xlibs.xf86inputjoystick
|
xlibs.xf86inputjoystick
|
||||||
oldwine
|
oldwine
|
||||||
oldwinetricks
|
oldwinetricks
|
||||||
|
] ++ (if !cfg.flatSteam then [
|
||||||
|
steam
|
||||||
|
steam-run
|
||||||
(writeScriptBin "steam-run-native" ''
|
(writeScriptBin "steam-run-native" ''
|
||||||
#!${pkgs.stdenv.shell}
|
#!${pkgs.stdenv.shell}
|
||||||
${(steam.override { nativeOnly = true; }).run}/bin/steam-run $@
|
${(steam.override { nativeOnly = true; }).run}/bin/steam-run $@
|
||||||
'')
|
'')
|
||||||
] ++ (
|
] else [
|
||||||
|
# steam-run-native
|
||||||
|
]) ++ (
|
||||||
if cfg.newWine then [
|
if cfg.newWine then [
|
||||||
(
|
(
|
||||||
pkgs.runCommand "new-wine-stuff"
|
pkgs.runCommand "new-wine-stuff"
|
||||||
@ -142,6 +145,12 @@ in
|
|||||||
description = "If this PC is used for gaming";
|
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 {
|
touchscreen = mkOption {
|
||||||
type = types.bool;
|
type = types.bool;
|
||||||
default = false;
|
default = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user