diff options
Diffstat (limited to 'machines')
| -rw-r--r-- | machines/common/base.nix | 1 | ||||
| -rw-r--r-- | machines/common/steam.nix | 35 | ||||
| -rw-r--r-- | machines/common/user.nix | 1 | ||||
| -rw-r--r-- | machines/hierophant/configuration.nix | 20 |
4 files changed, 57 insertions, 0 deletions
diff --git a/machines/common/base.nix b/machines/common/base.nix index 5e2c091..fbef8ae 100644 --- a/machines/common/base.nix +++ b/machines/common/base.nix @@ -15,6 +15,7 @@ programs.steam.enable = true; hardware.steam-hardware.enable = true; + programs.gamescope.enable = true; time.timeZone = "America/Los_Angeles"; i18n.defaultLocale = "en_US.UTF-8"; diff --git a/machines/common/steam.nix b/machines/common/steam.nix new file mode 100644 index 0000000..aa4ad84 --- /dev/null +++ b/machines/common/steam.nix @@ -0,0 +1,35 @@ +{lib, pkgs, ...}: { + users.users.steam = { + isNormalUser = true; + uid = 1001; + home = "/home/steam"; + extraGroups = [ + "wheel" + "video" + "docker" + "input" + "audio" + ]; + }; + + programs = { + gamescope = { + enable = true; + capSysNice = true; + }; + steam.gamescopeSession.enable = true; + }; + + programs.steam.enable = true; + hardware.steam-hardware.enable = true; + + services.greetd = { + enable = true; + settings = { + default_session = { + command = "${lib.getExe pkgs.gamescope} -W 3840 -H 2160 -f -e --xwayland-count 2 --hdr-enabled --hdr-itm-enabled -- steam -pipewire-dmabuf -gamepadui -steamdeck -steamos3 > /dev/null 2>&1"; + user = "steam"; + }; + }; + }; +} diff --git a/machines/common/user.nix b/machines/common/user.nix index adac815..7fe33a8 100644 --- a/machines/common/user.nix +++ b/machines/common/user.nix @@ -1,6 +1,7 @@ {...}: { users.users.kassouni = { isNormalUser = true; + uid = 1000; home = "/home/kassouni"; extraGroups = [ "wheel" diff --git a/machines/hierophant/configuration.nix b/machines/hierophant/configuration.nix index 01a2d25..8e04e44 100644 --- a/machines/hierophant/configuration.nix +++ b/machines/hierophant/configuration.nix @@ -1,4 +1,5 @@ { + config, pkgs, ... }: @@ -20,6 +21,25 @@ xrandr --output DP-0 --mode 3840x2160 --rate 159.98 ''; + fileSystems."/mnt/bertha" = + let + user = config.users.users.kassouni; + in + { + device = "/dev/disk/by-label/Bertha"; + fsType = "exfat"; + noCheck = true; + options = [ + "nofail" + "noauto" + "x-systemd.automount" + "x-systemd.idle-timeout=600" + "uid=${toString user.uid}" + "gid=${toString config.users.groups.${user.group}.gid}" + "umask=022" + ]; + }; + networking.hostName = "hierophant"; # This option defines the first version of NixOS you have installed on this particular machine, |