blob: 633ff3d9cfc9dcb40a52fce95cbf820a73de38ae (
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
26
|
{
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
];
completion.zsh = builtins.readFile ./completion.zsh;
inherit config;
};
in
{
options = base.options;
config = base.moduleConfig;
}
|