This repository has no description
0

Configure Feed

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

nix fmt

+57 -54
+6 -1
2configs/android-webcam.nix
··· 1 - { config, pkgs, self, ... }: 1 + { 2 + config, 3 + pkgs, 4 + self, 5 + ... 6 + }: 2 7 { 3 8 # v4l2loopback with two devices: raw camera and ASCII output 4 9 boot = {
-1
2configs/riot.nix
··· 1 1 { 2 - self, 3 2 config, 4 3 lib, 5 4 pkgs,
+25 -19
2configs/wiregrill.nix
··· 80 80 listenPort = 51820; 81 81 privateKeyFile = config.clan.core.vars.generators.wiregrill.files."wiregrill.key".path; 82 82 allowedIPsAsRoutes = true; 83 - peers = mapAttrsToList (_name: host: { 84 - # inherit name; 85 - allowedIPs = 86 - if isRouter then 87 - (optional (!isNull host.nets.wiregrill.ip4) host.nets.wiregrill.ip4.addr) 88 - ++ (optional (!isNull host.nets.wiregrill.ip6) host.nets.wiregrill.ip6.addr) 89 - else 90 - host.nets.wiregrill.wireguard.subnets; 91 - endpoint = mkIf (!isNull host.nets.wiregrill.via) ( 92 - host.nets.wiregrill.via.ip4.addr + ":${toString host.nets.wiregrill.wireguard.port}" 93 - ); 94 - persistentKeepalive = mkIf (!isNull host.nets.wiregrill.via) 61; 95 - publicKey = (replaceStrings [ "\n" ] [ "" ] host.nets.wiregrill.wireguard.pubkey); 96 - }) (filterAttrs (_: h: 97 - hasAttr "wiregrill" h.nets 98 - && hasAttr "wireguard" h.nets.wiregrill 99 - && !isNull h.nets.wiregrill.wireguard 100 - && !isNull h.nets.wiregrill.wireguard.pubkey 101 - ) config.krebs.hosts); 83 + peers = 84 + mapAttrsToList 85 + (_name: host: { 86 + # inherit name; 87 + allowedIPs = 88 + if isRouter then 89 + (optional (!isNull host.nets.wiregrill.ip4) host.nets.wiregrill.ip4.addr) 90 + ++ (optional (!isNull host.nets.wiregrill.ip6) host.nets.wiregrill.ip6.addr) 91 + else 92 + host.nets.wiregrill.wireguard.subnets; 93 + endpoint = mkIf (!isNull host.nets.wiregrill.via) ( 94 + host.nets.wiregrill.via.ip4.addr + ":${toString host.nets.wiregrill.wireguard.port}" 95 + ); 96 + persistentKeepalive = mkIf (!isNull host.nets.wiregrill.via) 61; 97 + publicKey = (replaceStrings [ "\n" ] [ "" ] host.nets.wiregrill.wireguard.pubkey); 98 + }) 99 + ( 100 + filterAttrs ( 101 + _: h: 102 + hasAttr "wiregrill" h.nets 103 + && hasAttr "wireguard" h.nets.wiregrill 104 + && !isNull h.nets.wiregrill.wireguard 105 + && !isNull h.nets.wiregrill.wireguard.pubkey 106 + ) config.krebs.hosts 107 + ); 102 108 }; 103 109 }
+4 -9
games/flake-module.nix
··· 1 1 { 2 - inputs, 3 2 lib, 4 - self, 5 3 ... 6 4 }: 7 5 { ··· 9 7 { pkgs, ... }: 10 8 let 11 9 gameDirs = builtins.filter (name: name != "lib") ( 12 - builtins.attrNames ( 13 - lib.filterAttrs (_: type: type == "directory") (builtins.readDir ./.) 14 - ) 10 + builtins.attrNames (lib.filterAttrs (_: type: type == "directory") (builtins.readDir ./.)) 15 11 ); 16 12 17 - buildGame = name: 13 + buildGame = 14 + name: 18 15 let 19 16 result = builtins.tryEval (pkgs.callPackage ./${name} { }); 20 17 in 21 18 if result.success then result.value else null; 22 19 23 - games = lib.filterAttrs (_: v: v != null) ( 24 - lib.genAttrs gameDirs buildGame 25 - ); 20 + games = lib.filterAttrs (_: v: v != null) (lib.genAttrs gameDirs buildGame); 26 21 in 27 22 { 28 23 # Expose via legacyPackages so `nix run .#games.haunted-ps1-demo-disc-2021` works
+1 -1
2configs/websites/util.nix
··· 1 - { lib, pkgs, ... }: 1 + { lib, ... }: 2 2 3 3 with lib; 4 4
+16 -16
games/lib/mk-haunted-ps1.nix
··· 70 70 ''; 71 71 72 72 installPhase = '' 73 - runHook preInstall 73 + runHook preInstall 74 74 75 - # Install all game files 76 - mkdir -p "$out/share/${pname}" 77 - cp -r * "$out/share/${pname}/" 75 + # Install all game files 76 + mkdir -p "$out/share/${pname}" 77 + cp -r * "$out/share/${pname}/" 78 78 79 - # Create wrapper script using umu-run (Proton launcher) 80 - mkdir -p "$out/bin" 81 - cat > "$out/bin/${pname}" <<WRAPPER 82 - #!/bin/sh 83 - export WINEPREFIX="\''${WINEPREFIX:-\$HOME/.local/share/${pname}/prefix}" 84 - export GAMEID="${pname}" 85 - export PROTONPATH="GE-Proton" 86 - exec ${umu-launcher}/bin/umu-run "\$out/share/${pname}/${exeName}" "\$@" 87 - WRAPPER 88 - substituteInPlace "$out/bin/${pname}" --replace-fail '$out' "$out" 89 - chmod +x "$out/bin/${pname}" 79 + # Create wrapper script using umu-run (Proton launcher) 80 + mkdir -p "$out/bin" 81 + cat > "$out/bin/${pname}" <<WRAPPER 82 + #!/bin/sh 83 + export WINEPREFIX="\''${WINEPREFIX:-\$HOME/.local/share/${pname}/prefix}" 84 + export GAMEID="${pname}" 85 + export PROTONPATH="GE-Proton" 86 + exec ${umu-launcher}/bin/umu-run "\$out/share/${pname}/${exeName}" "\$@" 87 + WRAPPER 88 + substituteInPlace "$out/bin/${pname}" --replace-fail '$out' "$out" 89 + chmod +x "$out/bin/${pname}" 90 90 91 - runHook postInstall 91 + runHook postInstall 92 92 ''; 93 93 94 94 meta = {
-1
machines/styx/config.nix
··· 1 1 { 2 2 config, 3 - lib, 4 3 pkgs, 5 4 ... 6 5 }:
+1 -1
machines/xerxes/config.nix
··· 25 25 pkgs.rbw 26 26 # retroarch with patched dolphin core (fixes shader compiler thread issue) 27 27 (pkgs.retroarch.withCores ( 28 - cores: 28 + _cores: 29 29 builtins.filter (c: c.pname or "" != "libretro-dolphin") pkgs.retroarch-free.cores 30 30 ++ [ self.packages.${pkgs.system}.libretro-dolphin ] 31 31 ))
+3 -4
tools/android-webcam/flake-module.nix
··· 13 13 ffmpeg-placebo 14 14 pkgs.gnused 15 15 ]; 16 - text = builtins.replaceStrings 17 - [ "@shaderPath@" ] 18 - [ "${./ascii.hook}" ] 19 - (builtins.readFile ./android-webcam.sh); 16 + text = builtins.replaceStrings [ "@shaderPath@" ] [ "${./ascii.hook}" ] ( 17 + builtins.readFile ./android-webcam.sh 18 + ); 20 19 }; 21 20 }; 22 21 }
+1 -1
tools/firefox/flake-module.nix
··· 1 1 { 2 2 perSystem = 3 - { pkgs, lib, ... }: 3 + { pkgs, ... }: 4 4 let 5 5 tridactylrc = ./tridactylrc; 6 6