update-local-flakes: Make available as package
If extensions have their lock file updated in some cases, running .#updateLocalFlakes will not work.
This commit is contained in:
parent
c4058e8102
commit
0d047d3e46
5 changed files with 17 additions and 7 deletions
11
flake.nix
11
flake.nix
|
@ -42,6 +42,9 @@
|
|||
config = {
|
||||
allowUnfree = true;
|
||||
};
|
||||
overlays = [
|
||||
(import ./common/update-local-flakes/overlay.nix)
|
||||
];
|
||||
};
|
||||
homeManagerConfig = {
|
||||
sharedModules = [ self.homeManagerModules.dotfiles ];
|
||||
|
@ -72,7 +75,9 @@
|
|||
};
|
||||
flakeTools = { self }: flake-utils.lib.eachDefaultSystem (system:
|
||||
let
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
pkgs = import nixpkgs (nixpkgsConfig // {
|
||||
inherit system;
|
||||
});
|
||||
in
|
||||
{
|
||||
apps = {
|
||||
|
@ -94,10 +99,10 @@
|
|||
${pkgs.lix}/bin/nix repl --expr 'let flake = builtins.getFlake "${self}"; in flake // flake.nixosConfigurations // rec { pkgs = import ${nixpkgs} {}; lib = pkgs.lib; }'
|
||||
''}";
|
||||
};
|
||||
# Available globally should this be needed in times of shenanigans
|
||||
updateLocalFlakes = {
|
||||
type = "app";
|
||||
program = "${pkgs.writers.writePython3 "update-local-flakes" { }
|
||||
(builtins.readFile ./common/update-local-flakes.py)}";
|
||||
program = "${pkgs.update-local-flakes}/bin/update-local-flakes";
|
||||
};
|
||||
nixosRebuild = {
|
||||
type = "app";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue