lix/cachix

This commit is contained in:
Jana Dönszelmann 2025-02-09 13:34:47 +01:00
parent 9fe35e28a4
commit 3c758d5346
No known key found for this signature in database
8 changed files with 732 additions and 1040 deletions

View file

@ -1,9 +1,9 @@
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
nixpkgs.url = "github:NixOS/nixpkgs/release-24.11";
flake-utils.url = "github:numtide/flake-utils";
home-manager = {
url = "github:nix-community/home-manager";
url = "github:nix-community/home-manager/release-24.11";
inputs.nixpkgs.follows = "nixpkgs";
};
@ -25,15 +25,11 @@
inputs.nixpkgs.follows = "nixpkgs";
};
ghostty = {
url = "github:ghostty-org/ghostty";
inputs.nixpkgs-stable.follows = "nixpkgs";
inputs.nixpkgs-unstable.follows = "nixpkgs";
p1n3appl3 = {
url = "github:p1n3appl3/config";
inputs.rahul-config.follows = "rahul-config";
};
# sorry, secret... for now
noteslsp.url = "git+ssh://git@github.com/jdonszelmann/notes";
rahul-config.url = "github:jdonszelmann/nix-config";
};
outputs =
@ -45,8 +41,6 @@
t,
dumpasm,
jujutsu,
ghostty,
noteslsp,
...
}@inputs:
let
@ -63,9 +57,8 @@
t = t.packages.${system}.default;
inherit (dumpasm.packages.${system}) dumpasm;
inherit (jujutsu.packages.${system}) jujutsu;
inherit (ghostty.packages.${system}) ghostty;
inherit (noteslsp.packages.${system}) noteslsp;
};
p1n3appl3 = inputs.p1n3appl3.packages.${system};
})
];
};
@ -94,7 +87,7 @@
(pkgs.writeShellScriptBin "apply-home" ''
export NIX_BUILD_CORES=$(($(nproc) * 2))
nix run .#home-manager -j $NIX_BUILD_CORES --cores $NIX_BUILD_CORES -- switch --flake .#$@ --max-jobs $NIX_BUILD_CORES
nix run .#home-manager -- switch --flake .#$@ -j $(nproc) --cores $(nproc)
'')
(pkgs.writeShellScriptBin "apply" ''
@ -120,4 +113,11 @@
inherit home-manager;
inherit (home-manager) packages;
};
nixConfig = {
extra-substituters = [ "https://jana.cachix.org" ];
extra-trusted-public-keys = [
"jana.cachix.org-1:LN0lzHx7QH1RBoDn3+psi4HOEAXW3EqRa/u0ncQ1XBE="
];
};
}