about summary refs log tree commit diff stats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--flake.nix6
-rw-r--r--home-manager/packages/default.nix3
-rw-r--r--system/services/default.nix1
-rw-r--r--system/services/steam/default.nix12
4 files changed, 20 insertions, 2 deletions
diff --git a/flake.nix b/flake.nix
index cc8a7b73..959eb8ed 100644
--- a/flake.nix
+++ b/flake.nix
@@ -84,6 +84,12 @@
     sysLib = import ./lib {inherit pkgs shell-library;};
     system = "x86_64-linux";
     pkgs = import inputs.nixpkgs {
+      config.allowUnfreePredicate = pkg:
+        builtins.elem (inputs.nixpkgs.lib.getName pkg) [
+          "steam"
+          "steam-original"
+        ];
+
       inherit system;
     };
   in {
diff --git a/home-manager/packages/default.nix b/home-manager/packages/default.nix
index 08907b65..9873a7d9 100644
--- a/home-manager/packages/default.nix
+++ b/home-manager/packages/default.nix
@@ -18,7 +18,6 @@ with pkgs; let
     Browsers = [
       ungoogled-chromium # web browser (only for web programming)
       brave
-
     ];
 
     ImageManipulation = [
@@ -34,7 +33,7 @@ with pkgs; let
       kalzium # Periodic Table of Elements
       keepassxc # password manager
       onlykey # OnlyKey Chrome Desktop App
-      #steam # Valve's digital software delivery system
+      lutris # Multi game lib
     ];
   };
 
diff --git a/system/services/default.nix b/system/services/default.nix
index 36cf9763..63f0e733 100644
--- a/system/services/default.nix
+++ b/system/services/default.nix
@@ -3,6 +3,7 @@
     ./printing
     ./nix
     ./snapper
+    ./steam
     ./dconf
     ./openssh
   ];
diff --git a/system/services/steam/default.nix b/system/services/steam/default.nix
new file mode 100644
index 00000000..916b3b15
--- /dev/null
+++ b/system/services/steam/default.nix
@@ -0,0 +1,12 @@
+# vim: ts=2
+{lib, ...}: {
+  programs.steam = {
+    enable = true;
+  };
+  nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
+    "steam"
+    "steam-original"
+    "steam-runtime"
+    "steam-run"
+  ];
+}