Put every variables in top of the file for easy copy to another config

Former-commit-id: 0bd55fdc10
This commit is contained in:
Hadi
2024-10-09 15:12:50 +02:00
parent 3bebb475d7
commit 492d257fa5
27 changed files with 298 additions and 301 deletions

View File

@@ -1,8 +1,10 @@
{ config, ... }: {
{ config, ... }:
let configDir = config.var.configDirectory;
in {
system.autoUpgrade = {
enable = config.var.autoUpgrade;
dates = "04:00";
flake = "${config.var.configDirectory}";
flake = "${configDir}";
flags = [ "--update-input" "nixpkgs" "--commit-lock-file" ];
allowReboot = false;
};