This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

machines.coaxmetal: use as moonlight test device

+51 -19
+48 -6
machines/coaxmetal/config.nix
··· 4 4 imports = [ 5 5 ../../2configs/retiolum.nix 6 6 ../../2configs/exim-retiolum.nix 7 - ../../2configs/desktops/xmonad 7 + # ../../2configs/desktops/lib/x11.nix 8 8 ../../2configs/browsers.nix 9 9 ../../2configs/programs.nix 10 10 ../../2configs/network-manager.nix ··· 12 12 ../../2configs/games.nix 13 13 ../../2configs/steam.nix 14 14 ../../2configs/wine.nix 15 - ../../2configs/fetchWallpaper.nix 16 15 ../../2configs/yellow-mounts/samba.nix 17 - ../../2configs/pass.nix 18 - ../../2configs/mail.nix 19 - ../../2configs/bitcoin.nix 20 16 ../../2configs/review.nix 21 - ../../2configs/dunst.nix 17 + { # moonlight test env 18 + imports = [ 19 + ../../2configs/sunshine.nix 20 + ../../2configs/pipewire.nix 21 + ../../2configs/mpv.nix 22 + ]; 23 + users.users.moon = { 24 + isNormalUser = true; 25 + uid = 1338; 26 + extraGroups = [ "video" "audio" "input" "pipewire" ]; 27 + home = "/home/moon"; 28 + password = "moon"; 29 + packages = with pkgs; [ 30 + (retroarch.override { cores = [ 31 + libretro.bsnes-hd 32 + libretro.mupen64plus 33 + ]; }) 34 + ]; 35 + }; 36 + services.xserver.enable = true; 37 + services.xserver.displayManager.autoLogin = { 38 + enable = true; 39 + user = "moon"; 40 + }; 41 + services.xserver.desktopManager.xfce.enable = true; 42 + services.xserver.displayManager.defaultSession = lib.mkForce "xfce"; 43 + services.xserver.displayManager.sessionCommands = '' 44 + tmux new-session -A -s sun -- sun 45 + ''; 46 + environment.systemPackages = [ 47 + pkgs.firefox-devedition 48 + pkgs.vulkan-tools 49 + ]; 50 + systemd.user.services.sun = { 51 + wantedBy = [ "default.target" ]; 52 + environment = { 53 + DISPLAY = ":0"; 54 + XAUTHORITY = "/home/moon/.Xauthority"; 55 + }; 56 + serviceConfig = { 57 + Type = "oneshot"; 58 + ExecStart = "${pkgs.tmux}/bin/tmux new-session -A -s sun -- /run/current-system/sw/bin/sun"; 59 + Restart = "always"; 60 + RestartSec = 5; 61 + }; 62 + }; 63 + } 22 64 ]; 23 65 24 66 krebs.build.host = config.krebs.hosts.coaxmetal;
+3 -13
machines/coaxmetal/physical.nix
··· 21 21 "amdgpu" 22 22 ]; 23 23 24 + boot.initrd.kernelModules = [ "amdgpu" ]; 25 + 24 26 hardware.opengl.extraPackages = [ pkgs.amdvlk ]; 25 - environment.variables.VK_ICD_FILENAMES = 26 - "/run/opengl-driver/share/vulkan/icd.d/amd_icd64.json"; 27 + hardware.opengl.extraPackages32 = [ pkgs.driversi686Linux.amdvlk ]; 27 28 28 29 boot.initrd.availableKernelModules = [ "nvme" "ehci_pci" "xhci_pci" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ]; 29 30 boot.kernelModules = [ "kvm-amd" ]; ··· 45 46 46 47 services.logind.lidSwitch = "ignore"; 47 48 services.logind.lidSwitchDocked = "ignore"; 48 - 49 - # Mouse stuff 50 - services.xserver.libinput.enable = lib.mkForce false; 51 - services.xserver.synaptics.enable = true; 52 - 53 - services.xserver.displayManager.sessionCommands = '' 54 - xinput disable 'ETPS/2 Elantech Touchpad' 55 - xinput set-prop 'ETPS/2 Elantech TrackPoint' 'Evdev Wheel Emulation' 1 56 - xinput set-prop 'ETPS/2 Elantech TrackPoint' 'Evdev Wheel Emulation Button' 2 57 - xinput set-prop 'ETPS/2 Elantech TrackPoint' 'Evdev Wheel Emulation Axes' 6 7 4 5 58 - ''; 59 49 }