nixos: init vanadium by cloning carbon

This commit is contained in:
Primrose 2024-12-28 22:12:18 +01:00
parent 96340f2e08
commit dcadddad3a
Signed by: primrose
GPG key ID: 4E887A4CA9714ADA
21 changed files with 1335 additions and 0 deletions

View 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
'';
};
};
};
}