2024-05-26 09:26:55 +01:00
|
|
|
{
|
|
|
|
description = "Upgrade NixOS system (and/or home-manager) in the background, with notification support";
|
|
|
|
|
|
|
|
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
|
|
|
inputs.poetry2nix.url = "github:nix-community/poetry2nix";
|
|
|
|
|
|
|
|
outputs = {
|
|
|
|
self,
|
|
|
|
nixpkgs,
|
|
|
|
poetry2nix,
|
|
|
|
}: let
|
|
|
|
supportedSystems = ["x86_64-linux" "x86_64-darwin" "aarch64-linux" "aarch64-darwin"];
|
|
|
|
forAllSystems = nixpkgs.lib.genAttrs supportedSystems;
|
|
|
|
pkgs = forAllSystems (system: nixpkgs.legacyPackages.${system});
|
|
|
|
in {
|
2024-05-26 10:52:54 +01:00
|
|
|
apps = forAllSystems (system: {
|
|
|
|
default = {
|
|
|
|
type = "app";
|
|
|
|
program = "${self.packages.${system}.default}/bin/nix-background-upgrade";
|
|
|
|
};
|
2024-05-26 09:26:55 +01:00
|
|
|
});
|
|
|
|
|
2024-05-27 08:34:36 +01:00
|
|
|
devShells = forAllSystems (system: {
|
2024-06-02 06:52:28 +01:00
|
|
|
default = (poetry2nix.lib.mkPoetry2Nix {pkgs = pkgs.${system};}).callPackage ./shell.nix {};
|
|
|
|
});
|
|
|
|
|
|
|
|
packages = forAllSystems (system: {
|
|
|
|
default = (poetry2nix.lib.mkPoetry2Nix {pkgs = pkgs.${system};}).callPackage ./default.nix {};
|
2024-05-26 09:26:55 +01:00
|
|
|
});
|
|
|
|
};
|
|
|
|
}
|