mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 14:49:14 +00:00
carbon: refactor autoupdate into module
This commit is contained in:
parent
9fac0c0286
commit
3ea98c3a5e
2 changed files with 47 additions and 42 deletions
44
nix/homeModules/named/carbon/autoupdate.nix
Normal file
44
nix/homeModules/named/carbon/autoupdate.nix
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
{ pkgs, lib, ... }:
|
||||
|
||||
{
|
||||
services.autoupdate = {
|
||||
enable = true;
|
||||
settings = {
|
||||
"dotfiles" = {
|
||||
path = "/home/leana/.dotfiles";
|
||||
updateCommand = ''
|
||||
nix flake update nixpkgs
|
||||
nix flake update home-manager
|
||||
nix flake update nur
|
||||
nix flake update flake-parts
|
||||
nix flake update pre-commit-hooks
|
||||
nix flake update deploy-rs
|
||||
|
||||
nix build ".?ref=$(git rev-parse @^)#nixosConfigurations.carbon.config.system.build.toplevel" --out-link last
|
||||
nix build ".#nixosConfigurations.carbon.config.system.build.toplevel"
|
||||
'';
|
||||
commitMessageCommand = ''
|
||||
${lib.getExe pkgs.nvd} diff last result
|
||||
unlink last
|
||||
'';
|
||||
};
|
||||
|
||||
"nixiode" = {
|
||||
path = "/home/leana/r/leana/nixiode";
|
||||
updateCommand = ''
|
||||
nix flake update nixpkgs
|
||||
nix flake update home-manager
|
||||
nix flake update blog
|
||||
nix flake update cv
|
||||
|
||||
nix build ".?ref=$(git rev-parse @^)#nixosConfigurations.forgejo.config.system.build.toplevel" --out-link last
|
||||
nix build ".#nixosConfigurations.forgejo.config.system.build.toplevel"
|
||||
'';
|
||||
commitMessageCommand = ''
|
||||
${lib.getExe pkgs.nvd} diff last result
|
||||
unlink last
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue