update inputs
and remove some workarounds
This commit is contained in:
parent
ab6e49cab5
commit
792df70ae1
30
flake.lock
30
flake.lock
|
@ -107,11 +107,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1688999869,
|
"lastModified": 1689134369,
|
||||||
"narHash": "sha256-gLD2UI6+Nb9JV5Wh4FnLHAZwLMiY11RHYBKmBZCxLXc=",
|
"narHash": "sha256-0G9dutIvhS/WUr3Awcnqw71g8EVVvvkOhVDnDDbY4Fw=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "a6d1d954b81caf4c9291b8ac35452fef842f289b",
|
"rev": "e42fb59768f0305085abde0dd27ab5e0cc15420c",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -206,11 +206,11 @@
|
||||||
"utils": "utils"
|
"utils": "utils"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1688586836,
|
"lastModified": 1689103880,
|
||||||
"narHash": "sha256-5uLYGa+8lysS1X5ehdU3ewmrMIG8p9+qS7yJ0LyhMHs=",
|
"narHash": "sha256-vHRCkcpnBbFsPqUNXliUmdPU81jqyuL9ZPzj3vJx2RE=",
|
||||||
"owner": "simple-nixos-mailserver",
|
"owner": "simple-nixos-mailserver",
|
||||||
"repo": "nixos-mailserver",
|
"repo": "nixos-mailserver",
|
||||||
"rev": "d460e9ff62ea1238fb3348a87326b743ae177902",
|
"rev": "69a4b7ad67d2732ba1f86666b3d4d2d83b15200e",
|
||||||
"type": "gitlab"
|
"type": "gitlab"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -315,11 +315,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1688609524,
|
"lastModified": 1689165382,
|
||||||
"narHash": "sha256-Wqzk7qgiyGBZhy9PU0IIlaqnt3JCCOoxgS2/ZiGMtTc=",
|
"narHash": "sha256-sBaEdI+lVJ6bcn287g3z8uc4wCRz9E+S5m67MWi/t6I=",
|
||||||
"owner": "chayleaf",
|
"owner": "chayleaf",
|
||||||
"repo": "notnft",
|
"repo": "notnft",
|
||||||
"rev": "442ec56617084bcc1b310cacb2e22e2c83bb6e3f",
|
"rev": "2ad8d7f831e05e0e646d345350f59b7030cb1cd6",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -330,11 +330,11 @@
|
||||||
},
|
},
|
||||||
"nur": {
|
"nur": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1689062700,
|
"lastModified": 1689162346,
|
||||||
"narHash": "sha256-uUD+KBJfX8kLALpB8cvIgSZ/xGWS34zBRbSlWsIyx80=",
|
"narHash": "sha256-/Aaygnbta0Dd5cyKZVk3AVA/MEmcWjEasYzUQa/tkJc=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "NUR",
|
"repo": "NUR",
|
||||||
"rev": "7d0ac0daa6e05b6619f9172be4f05f785882dfaa",
|
"rev": "b1a645e8e9fee78ad8e1f32575a29d1af8de9cf8",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -368,11 +368,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1689042658,
|
"lastModified": 1689129196,
|
||||||
"narHash": "sha256-p7cQAFNt5kX19sZvK74CmY0nTrtujpZg6sZUiV1ntAk=",
|
"narHash": "sha256-/z/Al4sFcIh5oPQWA9MclQmJR9g3RO8UDiHGaj/T9R8=",
|
||||||
"owner": "oxalica",
|
"owner": "oxalica",
|
||||||
"repo": "rust-overlay",
|
"repo": "rust-overlay",
|
||||||
"rev": "d7181bb2237035df17cab9295c95f987f5c527e6",
|
"rev": "db8d909c9526d4406579ee7343bf2d7de3d15eac",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
|
@ -16,14 +16,10 @@ in
|
||||||
nixForNixPlugins = pkgs.nixVersions.nix_2_16;
|
nixForNixPlugins = pkgs.nixVersions.nix_2_16;
|
||||||
clang-tools_latest = pkgs.clang-tools_16;
|
clang-tools_latest = pkgs.clang-tools_16;
|
||||||
clang_latest = pkgs.clang_16;
|
clang_latest = pkgs.clang_16;
|
||||||
steam-run = pkgs.steam-run.overrideAttrs (old: {
|
|
||||||
multiArch = true;
|
|
||||||
});
|
|
||||||
home-daemon = callPackage ./home-daemon { };
|
home-daemon = callPackage ./home-daemon { };
|
||||||
/*ghidra = pkgs.ghidra.overrideAttrs (old: {
|
/*ghidra = pkgs.ghidra.overrideAttrs (old: {
|
||||||
patches = old.patches ++ [ ./ghidra-stdcall.patch ];
|
patches = old.patches ++ [ ./ghidra-stdcall.patch ];
|
||||||
});*/
|
});*/
|
||||||
lalrpop = callPackage ./lalrpop { };
|
|
||||||
# pin version
|
# pin version
|
||||||
looking-glass-client = pkgs.looking-glass-client.overrideAttrs (old: {
|
looking-glass-client = pkgs.looking-glass-client.overrideAttrs (old: {
|
||||||
version = "B6";
|
version = "B6";
|
||||||
|
@ -37,7 +33,6 @@ in
|
||||||
});
|
});
|
||||||
kvmfrOverlay = kvmfr: kvmfr.overrideAttrs (old: {
|
kvmfrOverlay = kvmfr: kvmfr.overrideAttrs (old: {
|
||||||
inherit (pkgs'.looking-glass-client) version src;
|
inherit (pkgs'.looking-glass-client) version src;
|
||||||
patches = [ ./kvmfr-linux6_4.patch ];
|
|
||||||
});
|
});
|
||||||
pineapplebot = callPackage ./pineapplebot.nix { };
|
pineapplebot = callPackage ./pineapplebot.nix { };
|
||||||
proton-ge = pkgs.stdenvNoCC.mkDerivation {
|
proton-ge = pkgs.stdenvNoCC.mkDerivation {
|
||||||
|
|
|
@ -1,44 +0,0 @@
|
||||||
{ lib
|
|
||||||
, rustPlatform
|
|
||||||
, rust
|
|
||||||
, fetchFromGitHub
|
|
||||||
, substituteAll
|
|
||||||
, stdenv
|
|
||||||
}:
|
|
||||||
|
|
||||||
rustPlatform.buildRustPackage rec {
|
|
||||||
pname = "lalrpop";
|
|
||||||
version = "0.19.9";
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
|
||||||
owner = "lalrpop";
|
|
||||||
repo = "lalrpop";
|
|
||||||
rev = version;
|
|
||||||
hash = "sha256-1jXLcIlyObo9eIg0q6CyUTGhcAyZ8TDGmxxYhVxgcS8=";
|
|
||||||
};
|
|
||||||
|
|
||||||
cargoHash = "sha256-o1zpkwBmU1f/BZ4RrWuF5YvgjLhQOBOEdSbmouLPKAo=";
|
|
||||||
|
|
||||||
patches = [
|
|
||||||
(substituteAll {
|
|
||||||
src = ./use-correct-binary-path-in-tests.patch;
|
|
||||||
target_triple = rust.toRustTarget stdenv.hostPlatform;
|
|
||||||
})
|
|
||||||
];
|
|
||||||
|
|
||||||
buildAndTestSubdir = "lalrpop";
|
|
||||||
|
|
||||||
# there are some tests in lalrpop-test and some in lalrpop
|
|
||||||
checkPhase = ''
|
|
||||||
buildAndTestSubdir=lalrpop-test cargoCheckHook
|
|
||||||
cargoCheckHook
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = with lib; {
|
|
||||||
description = "LR(1) parser generator for Rust";
|
|
||||||
homepage = "https://github.com/lalrpop/lalrpop";
|
|
||||||
changelog = "https://github.com/lalrpop/lalrpop/blob/${src.rev}/RELEASES.md";
|
|
||||||
license = with licenses; [ asl20 /* or */ mit ];
|
|
||||||
maintainers = with maintainers; [ chayleaf ];
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -1,13 +0,0 @@
|
||||||
diff --git a/lalrpop-test/src/lib.rs b/lalrpop-test/src/lib.rs
|
|
||||||
index 087df01..9361a9e 100644
|
|
||||||
--- a/lalrpop-test/src/lib.rs
|
|
||||||
+++ b/lalrpop-test/src/lib.rs
|
|
||||||
@@ -1031,7 +1031,7 @@ fn verify_lalrpop_generates_itself() {
|
|
||||||
// Don't remove the .rs file that already exist
|
|
||||||
fs::copy(&grammar_file, &copied_grammar_file).expect("no grammar file found");
|
|
||||||
|
|
||||||
- assert!(Command::new("../target/debug/lalrpop")
|
|
||||||
+ assert!(Command::new("../target/@target_triple@/release/lalrpop")
|
|
||||||
.args(&[
|
|
||||||
"--force",
|
|
||||||
"--no-whitespace",
|
|
|
@ -1,6 +1,5 @@
|
||||||
{ config
|
{ config
|
||||||
, lib
|
, lib
|
||||||
, pkgs
|
|
||||||
, ... }:
|
, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
|
@ -50,37 +49,6 @@ in {
|
||||||
enable = true;
|
enable = true;
|
||||||
homeserver = "http://${lib.quoteListenAddr matrixAddr}:${toString matrixPort}/";
|
homeserver = "http://${lib.quoteListenAddr matrixAddr}:${toString matrixPort}/";
|
||||||
};
|
};
|
||||||
# TODO: remove when https://github.com/NixOS/nixpkgs/pull/242912 is merged
|
|
||||||
systemd.services.heisenbridge.preStart = let
|
|
||||||
bridgeConfig = builtins.toFile "heisenbridge-registration.yml" (builtins.toJSON {
|
|
||||||
inherit (config.services.heisenbridge) namespaces; id = "heisenbridge";
|
|
||||||
url = config.services.heisenbridge.registrationUrl; rate_limited = false;
|
|
||||||
sender_localpart = "heisenbridge";
|
|
||||||
});
|
|
||||||
in lib.mkForce ''
|
|
||||||
umask 077
|
|
||||||
set -e -u -o pipefail
|
|
||||||
|
|
||||||
if ! [ -f "/var/lib/heisenbridge/registration.yml" ]; then
|
|
||||||
# Generate registration file if not present (actually, we only care about the tokens in it)
|
|
||||||
${config.services.heisenbridge.package}/bin/heisenbridge --generate --config /var/lib/heisenbridge/registration.yml
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Overwrite the registration file with our generated one (the config may have changed since then),
|
|
||||||
# but keep the tokens. Two step procedure to be failure safe
|
|
||||||
${pkgs.yq}/bin/yq --slurp \
|
|
||||||
'.[0] + (.[1] | {as_token, hs_token})' \
|
|
||||||
${bridgeConfig} \
|
|
||||||
/var/lib/heisenbridge/registration.yml \
|
|
||||||
> /var/lib/heisenbridge/registration.yml.new
|
|
||||||
mv -f /var/lib/heisenbridge/registration.yml.new /var/lib/heisenbridge/registration.yml
|
|
||||||
|
|
||||||
# Grant Synapse access to the registration
|
|
||||||
if ${pkgs.getent}/bin/getent group matrix-synapse > /dev/null; then
|
|
||||||
chgrp -v matrix-synapse /var/lib/heisenbridge/registration.yml
|
|
||||||
chmod -v g+r /var/lib/heisenbridge/registration.yml
|
|
||||||
fi
|
|
||||||
'';
|
|
||||||
|
|
||||||
services.matrix-synapse = {
|
services.matrix-synapse = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
@ -465,6 +465,8 @@ in {
|
||||||
allow_iot4 = add set { type = f: f.ipv4_addr; flags = f: with f; [ interval ]; };
|
allow_iot4 = add set { type = f: f.ipv4_addr; flags = f: with f; [ interval ]; };
|
||||||
allow_iot6 = add set { type = f: f.ipv6_addr; flags = f: with f; [ interval ]; };
|
allow_iot6 = add set { type = f: f.ipv6_addr; flags = f: with f; [ interval ]; };
|
||||||
|
|
||||||
|
# TODO: is type=route hook=output better? it might help get rid of the routing inconsistency
|
||||||
|
# between router-originated and forwarded traffic
|
||||||
prerouting = add chain { type = f: f.filter; hook = f: f.prerouting; prio = f: f.filter; policy = f: f.accept; } ([
|
prerouting = add chain { type = f: f.filter; hook = f: f.prerouting; prio = f: f.filter; policy = f: f.accept; } ([
|
||||||
[(mangle meta.mark ct.mark)]
|
[(mangle meta.mark ct.mark)]
|
||||||
[(is.ne meta.mark 0) accept]
|
[(is.ne meta.mark 0) accept]
|
||||||
|
|
|
@ -132,7 +132,6 @@ in {
|
||||||
];
|
];
|
||||||
# kvmfrOverlay is defined in pkgs/default.nix
|
# kvmfrOverlay is defined in pkgs/default.nix
|
||||||
# I use it to keep looking-glass and kvmfr's version pinned
|
# I use it to keep looking-glass and kvmfr's version pinned
|
||||||
# (and in this case also to keep linux 6.4 compatibility)
|
|
||||||
extraModulePackages =
|
extraModulePackages =
|
||||||
lib.mkIf enableIvshmem [ ((pkgs.kvmfrOverlay or lib.id) config.boot.kernelPackages.kvmfr) ];
|
lib.mkIf enableIvshmem [ ((pkgs.kvmfrOverlay or lib.id) config.boot.kernelPackages.kvmfr) ];
|
||||||
extraModprobeConfig = ''
|
extraModprobeConfig = ''
|
||||||
|
|
Loading…
Reference in a new issue