feat(flake,stevee-x13s): bump to 24.11
This commit is contained in:
parent
9f191484f9
commit
b782ec6f1d
10 changed files with 349 additions and 475 deletions
98
flake.nix
98
flake.nix
|
@ -10,11 +10,9 @@
|
|||
# flake and infra basics
|
||||
nixpkgs-2211.url = "github:nixos/nixpkgs/nixos-22.11";
|
||||
radicalePkgs.follows = "nixpkgs-2211";
|
||||
nixpkgs-2305.url = "github:nixos/nixpkgs/nixos-23.05";
|
||||
nixpkgs-2311.url = "github:nixos/nixpkgs/nixos-23.11";
|
||||
nixpkgs-2405.url = "github:nixos/nixpkgs/nixos-24.05";
|
||||
nixpkgs-2411.url = "github:nixos/nixpkgs/nixos-24.11";
|
||||
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||
nixpkgs.follows = "nixpkgs-2405";
|
||||
nixpkgs.follows = "nixpkgs-2411";
|
||||
flake-parts.url = "github:hercules-ci/flake-parts";
|
||||
get-flake.url = "github:ursi/get-flake";
|
||||
|
||||
|
@ -45,8 +43,10 @@
|
|||
};
|
||||
crane.url = "github:ipetkov/crane";
|
||||
|
||||
sops-nix.url = "github:Mic92/sops-nix";
|
||||
sops-nix.inputs.nixpkgs.follows = "nixpkgs";
|
||||
sops-nix = {
|
||||
url = "github:Mic92/sops-nix";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
|
||||
# applications
|
||||
aphorme_launcher = {
|
||||
|
@ -81,10 +81,7 @@
|
|||
flake = false;
|
||||
};
|
||||
|
||||
logseq_0_10_9_aarch64_appimage = {
|
||||
flake = false;
|
||||
url = "https://www.stefanjunker.de/downloads/Logseq-0.10.9.AppImage";
|
||||
};
|
||||
nixpkgs-logseq.url = "github:steveej-forks/nixpkgs/logseq-linux-arm64";
|
||||
|
||||
espanso = {
|
||||
flake = false;
|
||||
|
@ -117,17 +114,23 @@
|
|||
};
|
||||
|
||||
nixpkgs-kanidm.url = "github:steveej-forks/nixpkgs/kanidm";
|
||||
nix4vscode.url = "github:nix-community/nix4vscode";
|
||||
nix4vscode = {
|
||||
url = "github:nix-community/nix4vscode";
|
||||
# inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
nixvim = {
|
||||
url = "github:nix-community/nixvim/nixos-24.05";
|
||||
# TODO: pin to nixos-24.11 once available
|
||||
url = "github:nix-community/nixvim";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
treefmt-nix = {
|
||||
url = "github:numtide/treefmt-nix";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
nixago.url = "github:jmgilman/nixago";
|
||||
nixago.inputs.nixpkgs.follows = "nixpkgs";
|
||||
nixago = {
|
||||
url = "github:jmgilman/nixago";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
};
|
||||
|
||||
outputs =
|
||||
|
@ -200,7 +203,8 @@
|
|||
# nixos-rebuild switch --flake .\#router0-dmz0_cross --build-host localhost --target-host root@192.168.10.1
|
||||
router0-dmz0_cross = router0-dmz0.cross;
|
||||
|
||||
steveej-x13s_cross = (inputs.get-flake (self + "./nix/os/devices/steveej-x13s")).nixosConfigurations.cross;
|
||||
steveej-x13s_cross =
|
||||
(inputs.get-flake (self + "./nix/os/devices/steveej-x13s")).nixosConfigurations.cross;
|
||||
steveej-x13s-rmvbl_cross =
|
||||
(inputs.get-flake ./nix/os/devices/steveej-x13s-rmvbl).nixosConfigurations.cross;
|
||||
};
|
||||
|
@ -227,6 +231,65 @@
|
|||
craneLibFn = (inputs.crane.mkLib inputs.nixpkgs.legacyPackages.${system}).overrideToolchain;
|
||||
|
||||
craneLib = craneLibFn inputs'.fenix.packages.stable.toolchain;
|
||||
|
||||
_prsPackage =
|
||||
{
|
||||
lib,
|
||||
rustPlatform,
|
||||
installShellFiles,
|
||||
pkg-config,
|
||||
python3,
|
||||
glib,
|
||||
gpgme,
|
||||
gtk3,
|
||||
stdenv,
|
||||
cargoHash ? "sha256-T57RqIzurpYLHyeFhvqxmC+DoB6zUf+iTu1YkMmwtp8=",
|
||||
src,
|
||||
version,
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "prs";
|
||||
|
||||
inherit src version cargoHash;
|
||||
|
||||
nativeBuildInputs = [
|
||||
gpgme
|
||||
installShellFiles
|
||||
pkg-config
|
||||
python3
|
||||
];
|
||||
|
||||
cargoBuildFlags = [
|
||||
"--no-default-features"
|
||||
"--features=alias,backend-gpgme,clipboard,notify,select-fzf-bin,select-skim-bin,tomb,totp"
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
glib
|
||||
gpgme
|
||||
gtk3
|
||||
];
|
||||
|
||||
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||
for shell in bash fish zsh; do
|
||||
installShellCompletion --cmd prs --$shell <($out/bin/prs internal completions $shell --stdout)
|
||||
done
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Secure, fast & convenient password manager CLI using GPG and git to sync";
|
||||
homepage = "https://gitlab.com/timvisee/prs";
|
||||
changelog = "https://gitlab.com/timvisee/prs/-/blob/v${version}/CHANGELOG.md";
|
||||
license = with licenses; [
|
||||
lgpl3Only # lib
|
||||
gpl3Only # everything else
|
||||
];
|
||||
maintainers = with maintainers; [ dotlambda ];
|
||||
mainProgram = "prs";
|
||||
};
|
||||
};
|
||||
|
||||
in
|
||||
{
|
||||
dcpj4110dwDriver = dcpj4110dw.driver;
|
||||
|
@ -234,10 +297,11 @@
|
|||
|
||||
inherit (inputs'.colmena.packages) colmena;
|
||||
|
||||
prs = pkgs.prs.overrideAttrs(_: {
|
||||
prs = pkgs.callPackage _prsPackage {
|
||||
src = inputs.prs;
|
||||
version = inputs.prs.shortRev;
|
||||
});
|
||||
cargoHash = "sha256-oXuAKOHIfwUvcS0qXDTe68DN+MUNS4TAKV986vxdeh8=";
|
||||
};
|
||||
|
||||
nomad = inputs'.nixpkgs-unstable.legacyPackages.nomad_1_6;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue