blob: 13c15f6ea682218563f207e703758852ebd63775 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
# Update NixOS and/or Home Manager flake configuration
{
config,
lib,
pkgs,
...
}:
let
inherit ((import ../../lib/script.nix { inherit lib pkgs; })) mkScriptModule;
in
mkScriptModule {
scope = [ "system" ];
name = "nix-update";
path = ./nix-update.sh;
description = "Update NixOS and/or Home Manager flake configuration\nRuns nix flake update and rebuilds the system";
deps = [
pkgs.git
pkgs.nix
config.programs.home-manager.package
pkgs.bash
];
completion.zsh = builtins.readFile ./nix-update.zsh;
inherit config;
}
|