correct variables

This commit is contained in:
Andreas Zweili 2022-02-16 22:27:50 +01:00
parent 9081f84152
commit 075576d220
2 changed files with 6 additions and 5 deletions

View File

@ -27,6 +27,7 @@
, custom
}:
let
system = custom.system;
overlay-unstable = final: prev: {
unstable = import nixpkgs-unstable {
system = custom.system;
@ -35,7 +36,7 @@
};
pkgs = import nixpkgs {
inherit custom.system;
inherit system;
config = {
allowUnfree = true;
};
@ -44,8 +45,8 @@
];
};
mkComputer = configurationNix: homeManagerRole: extraModules: nixpkgs.lib.nixosSystem {
inherit custom.system pkgs;
specialArgs = { inherit inputs username; };
inherit system pkgs;
specialArgs = { inherit inputs; };
modules = (
[
# System configuration for this host
@ -123,7 +124,7 @@
./modules/code-server
./modules/docker
(import ./modules/restic-server-client {
inherit inputs username; time = "21:30";
inherit inputs; time = "21:30";
})
];
heimdall = mkComputer

View File

@ -5,7 +5,7 @@
];
services.restic.backups.${inputs.custom.username} = {
user = username;
user = inputs.custom.username;
repository = "rest:http://10.7.89.30:8000";
timerConfig = {
OnCalendar = "hourly";