this repo has no description
1
fork

Configure Feed

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

Bump npins sources, add sunshine and moonlight setup to vulpes, stop the minecraft server

roufpup a8198a3e 76c7c32f

+176 -33
+1 -1
hosts/vulpes/core/boot.nix
··· 24 24 }; 25 25 kernelModules = [ "kvm-amd" ]; 26 26 supportedFilesystems = [ "nfs" ]; 27 - 27 + kernelParams = [ "amdgpu.runpm=0" ]; 28 28 kernel.sysctl = { 29 29 "net.ipv4.ip_forward" = 1; 30 30 };
+12
hosts/vulpes/core/hardware.nix
··· 1 1 { 2 + pkgs, 3 + modulesPath, 2 4 ... 3 5 }: 4 6 { 7 + imports = [ 8 + (modulesPath + "/installer/scan/not-detected.nix") 9 + ]; 10 + 5 11 fileSystems = { 6 12 "/" = { 7 13 device = "/dev/mapper/vulpes-root"; ··· 42 48 graphics = { 43 49 enable = true; 44 50 enable32Bit = true; 51 + extraPackages = with pkgs; [ 52 + libva-utils 53 + libvdpau-va-gl 54 + ]; 45 55 }; 46 56 47 57 cpu = { ··· 49 59 updateMicrocode = true; 50 60 }; 51 61 }; 62 + 63 + uinput.enable = true; 52 64 }; 53 65 }
+26 -11
hosts/vulpes/core/services.nix
··· 1 - { args, config, ... }: 1 + { 2 + args, 3 + config, 4 + ... 5 + }: 2 6 let 3 7 pm = (args.mods.priv_mod.get_data args); 4 8 in ··· 33 37 qemuGuest = { 34 38 enable = true; 35 39 }; 40 + 41 + pipewire = { 42 + enable = true; 43 + pulse.enable = true; 44 + wireplumber = { 45 + enable = true; 46 + }; 47 + }; 36 48 }; 37 - systemd.services.netbird-vulpes = { 38 - serviceConfig = { 39 - AmbientCapabilities = [ 40 - "CAP_NET_BIND_SERVICE" 41 - "CAP_DAC_OVERRIDE" 42 - ]; 43 - ReadWritePaths = [ 44 - "/etc/resolv.conf" 45 - "/etc/resolv.conf.original.netbird" 46 - ]; 49 + systemd.services = { 50 + netbird-vulpes = { 51 + serviceConfig = { 52 + AmbientCapabilities = [ 53 + "CAP_NET_BIND_SERVICE" 54 + "CAP_DAC_OVERRIDE" 55 + ]; 56 + ReadWritePaths = [ 57 + "/etc/resolv.conf" 58 + "/etc/resolv.conf.original.netbird" 59 + ]; 60 + }; 47 61 }; 48 62 }; 63 + 49 64 }
+15
hosts/vulpes/core/users.nix
··· 28 28 "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIkUMYuTCjDCIldnrQlA8M5gPkEUZ/oXxD5+B7nNeoM3 openpgp:0x13D59319" 29 29 ]; 30 30 }; 31 + sunshine = { 32 + group = "sunshine"; 33 + isNormalUser = true; 34 + extraGroups = [ 35 + "uinput" 36 + "input" 37 + "video" 38 + "render" 39 + "audio" 40 + ]; 41 + }; 31 42 ente = { 32 43 uid = 5000; 33 44 group = "ente"; ··· 57 68 zerda = { 58 69 name = "zerda"; 59 70 members = [ "zerda" ]; 71 + }; 72 + sunshine = { 73 + name = "sunshine"; 74 + members = [ "sunshine" ]; 60 75 }; 61 76 }; 62 77 };
+1 -2
hosts/vulpes/default.nix
··· 1 1 { 2 2 args, 3 3 pkgs, 4 - lib, 5 4 ... 6 5 }: 7 6 let ··· 9 8 in 10 9 { 11 10 imports = [ 12 - (args.sources.nixpkgs.outPath + "/nixos/modules/profiles/minimal.nix") 13 11 args.pins.nix-minecraft.nixosModules.minecraft-servers 14 12 args.pins.sops-nix.nixosModules.sops 15 13 ] ··· 25 23 zellij 26 24 configarr 27 25 vulkan-tools 26 + mangohud 28 27 ]; 29 28 30 29 nix.settings = {
+92
hosts/vulpes/infra/gaming.nix
··· 1 + { pkgs, ... }: 2 + let 3 + sway_startup_command = pkgs.writeShellScript "start_sway.sh" '' 4 + export XDG_CURRENT_DESKTOP=sway 5 + export XDG_SESSION_DESKTOP=sway 6 + export XDG_SESSION_TYPE=wayland 7 + export XDG_RUNTIME_DIR=/run/user/1001 8 + 9 + export WLR_BACKENDS=headless,libinput 10 + export WAYLAND_DISPLAY=wayland-1 11 + 12 + ${pkgs.sway}/bin/sway --config /etc/sway_config 13 + ''; 14 + 15 + sunshine_apps = { 16 + apps = [ 17 + { 18 + name = "Desktop"; 19 + } 20 + { 21 + name = "Endfield"; 22 + cmd = "${endfield_script}"; 23 + } 24 + ]; 25 + env = { }; 26 + }; 27 + 28 + sunshine_conf = pkgs.writeText "sunshine.conf" '' 29 + file_apps=${pkgs.writeText "sunshine_apps.json" (builtins.toJSON sunshine_apps)} 30 + port=47989 31 + audio_sink=sink-sunshine-stereo 32 + ''; 33 + 34 + endfield_script = pkgs.writeShellScript "run_endfield.sh" '' 35 + # export MANGOHUD=1 36 + export PROTONPATH="/home/sunshine/Games/components/proton/dwproton-10.0-14-x86_64" 37 + export WINEPREFIX="/home/sunshine/Games/prefixes/Endfield" 38 + export RUNTIMEPATH="/home/sunshine/Games/components/steam_runtime/3.0.20251216.191774" 39 + ${pkgs.umu-launcher}/bin/umu-run /home/sunshine/Games/Endfield/Endfield.exe 40 + env >> /home/sunshine/log.txt 41 + ''; 42 + in 43 + { 44 + environment.etc."sway_config" = { 45 + text = '' 46 + output HEADLESS-1 { 47 + pos 0,0 48 + mode 2560x1600@120Hz 49 + } 50 + default_border none 51 + 52 + set $mod Mod1 53 + bindsym $mod+Q exec ${pkgs.foot}/bin/foot 54 + 55 + bindsym $mod+1 workspace 1 56 + bindsym $mod+2 workspace 2 57 + bindsym $mod+3 workspace 3 58 + bindsym $mod+4 workspace 4 59 + bindsym $mod+5 workspace 5 60 + 61 + bindsym $mod+Shift+C kill 62 + bindsym $mod+F fullscreen 63 + bindsym $mod+R reload 64 + 65 + exec systemctl --user import-environment WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP XDG_SESSION_TYPE 66 + exec_always ${pkgs.sunshine}/bin/sunshine ${sunshine_conf} 67 + ''; 68 + }; 69 + 70 + services = { 71 + udev.extraRules = '' 72 + KERNEL=="uinput", SUBSYSTEM=="misc", OPTIONS+="static_node=uinput", GROUP="input", MODE="0660" 73 + ''; 74 + 75 + greetd = { 76 + enable = true; 77 + settings = rec { 78 + terminal = { 79 + vt = 1; 80 + }; 81 + initial_session = { 82 + command = "${sway_startup_command}"; 83 + user = "sunshine"; 84 + }; 85 + default_session = initial_session; 86 + }; 87 + }; 88 + }; 89 + systemd.services.greetd = { 90 + wantedBy = [ "multi-user.target" ]; 91 + }; 92 + }
+1 -1
hosts/vulpes/infra/minecraft.nix
··· 80 80 }; 81 81 servers = { 82 82 atr10 = { 83 - enable = true; 83 + enable = false; 84 84 autoStart = true; 85 85 serverProperties = { 86 86 server-port = 2755;
-2
hosts/work/core/hardware.nix
··· 1 1 { 2 - config, 3 - lib, 4 2 pkgs, 5 3 modulesPath, 6 4 ...
+1 -1
hosts/work/core/packages.nix
··· 84 84 token = pm.factorio.token; 85 85 }) 86 86 mangohud 87 - elysia 87 + moonlight-qt 88 88 89 89 # Programming 90 90 rustc
+15 -3
hosts/work/core/virtualization.nix
··· 40 40 enable = true; 41 41 }; 42 42 43 - docker = { 44 - rootless = { 43 + podman = { 44 + enable = true; 45 + autoPrune = { 45 46 enable = true; 46 - setSocketVariable = true; 47 + dates = "daily"; 48 + }; 49 + dockerCompat = true; 50 + dockerSocket = { 51 + enable = true; 47 52 }; 48 53 }; 54 + 55 + # docker = { 56 + # rootless = { 57 + # enable = true; 58 + # setSocketVariable = true; 59 + # }; 60 + # }; 49 61 }; 50 62 51 63 security.wrappers = {
+12 -12
npins/sources.json
··· 48 48 }, 49 49 "branch": "main", 50 50 "submodules": false, 51 - "revision": "8539013044624a257e8da370069107aea148e985", 52 - "url": "https://github.com/feel-co/hjem/archive/8539013044624a257e8da370069107aea148e985.tar.gz", 53 - "hash": "sha256-I2zxtEafZbFbqXe71rjqwVeTDv8SIVLaSzQd39SwfwM=" 51 + "revision": "9d0c8d4b44f661910595b07e6480557644c1431c", 52 + "url": "https://github.com/feel-co/hjem/archive/9d0c8d4b44f661910595b07e6480557644c1431c.tar.gz", 53 + "hash": "sha256-cKETEBrseo7Iz+bOzflwy1xTpDuUj3QaLA+P49yJw8k=" 54 54 }, 55 55 "hjem-rum": { 56 56 "type": "Git", ··· 111 111 }, 112 112 "branch": "nixos-unstable", 113 113 "submodules": false, 114 - "revision": "1412caf7bf9e660f2f962917c14b1ea1c3bc695e", 115 - "url": "https://github.com/NixOS/nixpkgs/archive/1412caf7bf9e660f2f962917c14b1ea1c3bc695e.tar.gz", 116 - "hash": "sha256-AIdl6WAn9aymeaH/NvBj0H9qM+XuAuYbGMZaP0zcXAQ=" 114 + "revision": "c5296fdd05cfa2c187990dd909864da9658df755", 115 + "url": "https://github.com/NixOS/nixpkgs/archive/c5296fdd05cfa2c187990dd909864da9658df755.tar.gz", 116 + "hash": "sha256-oMmN1lVQU0F0W2k6OI3bgdzp2YOHWYUAw79qzDSjenU=" 117 117 }, 118 118 "nixpkgs-jelly": { 119 119 "type": "Git", ··· 138 138 }, 139 139 "branch": "master", 140 140 "submodules": false, 141 - "revision": "cd5629ba0f8e35e70024c96b70ce5a261c7a2211", 142 - "url": "https://github.com/NixOS/nixpkgs/archive/cd5629ba0f8e35e70024c96b70ce5a261c7a2211.tar.gz", 143 - "hash": "sha256-OqNTHtPlfLOo/CE9np7RktpY9GdN/c4s8Zuuuhzo1CM=" 141 + "revision": "892a4046a680000914ffeb3121ae9104bd5b3f93", 142 + "url": "https://github.com/NixOS/nixpkgs/archive/892a4046a680000914ffeb3121ae9104bd5b3f93.tar.gz", 143 + "hash": "sha256-W/sVQL3ZE9JajudQR2b/nfv4XhzlBZB9DHcr/8NjC9c=" 144 144 }, 145 145 "sops-nix": { 146 146 "type": "Git", ··· 151 151 }, 152 152 "branch": "master", 153 153 "submodules": false, 154 - "revision": "e085e303dfcce21adcb5fec535d65aacb066f101", 155 - "url": "https://github.com/Mic92/sops-nix/archive/e085e303dfcce21adcb5fec535d65aacb066f101.tar.gz", 156 - "hash": "sha256-NjKtkJraCZEnLHAJxLTI+BfdU//9coAz9p5TqveZwPU=" 154 + "revision": "2eb9eed7ef48908e0f02985919f7eb9d33fa758f", 155 + "url": "https://github.com/Mic92/sops-nix/archive/2eb9eed7ef48908e0f02985919f7eb9d33fa758f.tar.gz", 156 + "hash": "sha256-+Uvq9h2eGsbhacXpuS7irYO7fFlz514nrhPCSTkASlw=" 157 157 }, 158 158 "stash": { 159 159 "type": "Git",