feat: full poc

This commit is contained in:
atagen 2025-06-19 17:35:38 +10:00
parent b76036038e
commit a8847b93cf
14 changed files with 630 additions and 323 deletions

View file

@ -39,27 +39,38 @@
RUST_SRC_DIR = "${pkgs.rustPlatform.rustLibSrc}";
RUST_LOG = "debug";
shellHook = ''
cp -R ${niri-flake.inputs.niri-unstable} niri/
cp --no-preserve=mode,ownership -R ${niri-flake.inputs.niri-unstable} niri/
'';
};
});
packages = forAllSystems (pkgs: {
unstable = deps.${pkgs.system}.naersk.buildPackage {
src = ./.;
RUSTFLAGS = "--cfg tokio_unstable";
preConfigure = ''
cp -R ${niri-flake.inputs.niri-unstable} niri/
'';
meta.mainProgram = "niri-tag";
};
stable = deps.${pkgs.system}.naersk.buildPackage {
src = ./.;
RUSTFLAGS = "--cfg tokio_unstable";
preBuild = ''
cp -R ${niri-flake.inputs.niri-stable} niri/
'';
meta.mainProgram = "niri-tag";
};
default = self.packages.${pkgs.system}.unstable;
});
# TODO make module that compiles based on niri version
nixosModules.default = self.nixosModules.niri-tag;
nixosModules.niri-tag =
{ pkgs, ... }:
{
imports = [
./module.nix
];
services.niri-tag.package = self.packages.${pkgs.system}.unstable;
};
};
}