Compare commits

...

2 Commits

Author SHA1 Message Date
coolneng ce676449a6
Push dependencies bumps to git daily 2022-05-02 00:46:17 +02:00
coolneng 674966001b
Auto-upgrade the system 2022-05-02 00:14:06 +02:00
2 changed files with 23 additions and 0 deletions

View File

@ -133,6 +133,20 @@ in {
nix.nixPath = let path = toString ./.; nix.nixPath = let path = toString ./.;
in [ "nixpkgs=${inputs.nixpkgs}" "nixos-config=${path}/configuration.nix" ]; in [ "nixpkgs=${inputs.nixpkgs}" "nixos-config=${path}/configuration.nix" ];
# Auto-upgrade the system
system.autoUpgrade = {
enable = true;
dates = "22:30";
flake = "/home/coolneng/Projects/panacea";
flags = [
"--update-input"
"agenix"
"--update-input"
"nixpkgs"
"--commit-lock-file"
];
};
# Import other configuration modules # Import other configuration modules
imports = [ imports = [
./modules/hardware-configuration.nix ./modules/hardware-configuration.nix

View File

@ -120,4 +120,13 @@ in {
after = [ "home-coolneng.mount" ]; after = [ "home-coolneng.mount" ];
before = [ "mopidy.service" "mopidy-scan.service" ]; before = [ "mopidy.service" "mopidy-scan.service" ];
}; };
# Push panacea changes to git daily
systemd.user.services.panacea-push = {
description = "Push panacea changes to git";
path = [ git gitAndTools.pass-git-helper ];
script = "${pkgs.git}/bin/git push";
serviceConfig.Type = "oneshot";
startAt = "14:00:00";
};
} }