blob: 787265dd22ce8958ce4cfe3a1aad191e42fcd8aa (
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
25
|
{
config,
lib,
pkgs,
...
}:
let
inherit ((import ../lib.nix { inherit lib pkgs; })) mkScriptModule;
base = mkScriptModule {
name = "nix-update";
path = ./script.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
];
inherit config;
};
in
{
options = base.options;
config = base.moduleConfig;
}
|