aboutsummaryrefslogtreecommitdiff
path: root/share/system
diff options
context:
space:
mode:
Diffstat (limited to 'share/system')
-rw-r--r--share/system/hyprland.nix6
-rw-r--r--share/system/spotifyd.nix13
-rw-r--r--share/system/steam.nix24
3 files changed, 43 insertions, 0 deletions
diff --git a/share/system/hyprland.nix b/share/system/hyprland.nix
new file mode 100644
index 0000000..2e1c679
--- /dev/null
+++ b/share/system/hyprland.nix
@@ -0,0 +1,6 @@
+{ inputs, pkgs, ... }: {
+ programs.hyprland = {
+ enable = true;
+ package = inputs.hyprland.packages.${pkgs.system}.hyprland;
+ };
+}
diff --git a/share/system/spotifyd.nix b/share/system/spotifyd.nix
new file mode 100644
index 0000000..5e04898
--- /dev/null
+++ b/share/system/spotifyd.nix
@@ -0,0 +1,13 @@
+{ config, ... }:
+let secrets = config.sops.secrets;
+in {
+ services.spotifyd = {
+ enable = true;
+ settings.global = {
+ username_cmd = "cat ${secrets."spotify/username".path}";
+ password_cmd = "cat ${secrets."spotify/password".path}";
+ device_name = "nixos_${config.networking.hostName}";
+ device_type = "computer";
+ };
+ };
+}
diff --git a/share/system/steam.nix b/share/system/steam.nix
new file mode 100644
index 0000000..7137bfa
--- /dev/null
+++ b/share/system/steam.nix
@@ -0,0 +1,24 @@
+{ lib, ... }: {
+ programs.steam.enable = true;
+
+ nixpkgs.config = {
+ allowUnfreePredicate = pkg:
+ builtins.elem (lib.getName pkg) [
+ "steam"
+ "steam-original"
+ "steam-runtime"
+ ];
+ packageOverrides = pkgs: {
+ steam =
+ pkgs.steam.override { extraPkgs = pkgs: with pkgs; [ libgdiplus ]; };
+ };
+ };
+
+ environment.sessionVariables = rec {
+ # Steam needs this to find Proton-GE
+ STEAM_EXTRA_COMPAT_TOOLS_PATHS =
+ "\${HOME}/.steam/root/compatibilitytools.d";
+ # note: this doesn't replace PATH, it just adds this to it
+ PATH = [ "\${XDG_BIN_HOME}" ];
+ };
+}