fix: static username in home-manager-update script
This commit is contained in:
23
flake.lock
generated
23
flake.lock
generated
@@ -286,17 +286,14 @@
|
||||
"opencode": "opencode"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1770775409,
|
||||
"narHash": "sha256-ZijMd/HxLKQEC9CRfdr5enXrkZjR6fiCU93vfqiB9fM=",
|
||||
"ref": "refs/heads/master",
|
||||
"rev": "19456800ed9d3ec26f07f807d96dfe09252123d4",
|
||||
"revCount": 93,
|
||||
"type": "git",
|
||||
"url": "https://code.m3ta.dev/m3tam3re/nixpkgs"
|
||||
"lastModified": 1770790246,
|
||||
"narHash": "sha256-pUK1eP2iZ295Eo0MDmzLjGPp41dKEiKa4zY5g8TRnMI=",
|
||||
"path": "/home/sascha.koenig/p/NIX/nixpkgs",
|
||||
"type": "path"
|
||||
},
|
||||
"original": {
|
||||
"type": "git",
|
||||
"url": "https://code.m3ta.dev/m3tam3re/nixpkgs"
|
||||
"path": "/home/sascha.koenig/p/NIX/nixpkgs",
|
||||
"type": "path"
|
||||
}
|
||||
},
|
||||
"nix-ai-tools": {
|
||||
@@ -580,16 +577,16 @@
|
||||
"nixpkgs": "nixpkgs_4"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1770761545,
|
||||
"narHash": "sha256-IHN7Rh/Wb4TKdT1rkJYgkI0CLBXCcrM0OpCkIlycW+Y=",
|
||||
"lastModified": 1770754894,
|
||||
"narHash": "sha256-Uh3BQQFpYwYhMvSv3ZZYufA+EcRF+m34uS8BtZyCUlA=",
|
||||
"owner": "anomalyco",
|
||||
"repo": "opencode",
|
||||
"rev": "1bbbd51d48f38014674eebe1588f556da95b7b1f",
|
||||
"rev": "fbc41475b403a23f004f63289b264c224b9d6b2f",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "anomalyco",
|
||||
"ref": "v1.1.56",
|
||||
"ref": "v1.1.55",
|
||||
"repo": "opencode",
|
||||
"type": "github"
|
||||
}
|
||||
|
||||
14
flake.nix
14
flake.nix
@@ -22,8 +22,8 @@
|
||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-25.11";
|
||||
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||
|
||||
m3ta-nixpkgs.url = "git+https://code.m3ta.dev/m3tam3re/nixpkgs";
|
||||
# m3ta-nixpkgs.url = "path:/home/sascha.koenig/p/NIX/nixpkgs";
|
||||
# m3ta-nixpkgs.url = "git+https://code.m3ta.dev/m3tam3re/nixpkgs";
|
||||
m3ta-nixpkgs.url = "path:/home/sascha.koenig/p/NIX/nixpkgs";
|
||||
|
||||
nur = {
|
||||
url = "github:nix-community/NUR";
|
||||
@@ -138,6 +138,7 @@
|
||||
extraSpecialArgs = {
|
||||
inherit inputs outputs;
|
||||
hostname = "AZPILOGISTIK01";
|
||||
username = "logistik";
|
||||
};
|
||||
modules = [./home/users/logistik/AZPILOGISTIK01.nix];
|
||||
};
|
||||
@@ -146,6 +147,7 @@
|
||||
extraSpecialArgs = {
|
||||
inherit inputs outputs;
|
||||
hostname = "AZPILOGISTIK02";
|
||||
username = "logistik";
|
||||
};
|
||||
modules = [./home/users/logistik/AZPILOGISTIK02.nix];
|
||||
};
|
||||
@@ -154,6 +156,7 @@
|
||||
extraSpecialArgs = {
|
||||
inherit inputs outputs;
|
||||
hostname = "AZPILOGISTIK03";
|
||||
username = "logistik";
|
||||
};
|
||||
modules = [./home/users/logistik/AZPILOGISTIK03.nix];
|
||||
};
|
||||
@@ -162,6 +165,7 @@
|
||||
extraSpecialArgs = {
|
||||
inherit inputs outputs;
|
||||
hostname = "AZPILOGISTIK04";
|
||||
username = "logistik";
|
||||
};
|
||||
modules = [./home/users/logistik/AZPILOGISTIK04.nix];
|
||||
};
|
||||
@@ -170,6 +174,7 @@
|
||||
extraSpecialArgs = {
|
||||
inherit inputs outputs;
|
||||
hostname = "AZPILOGISTIK05";
|
||||
username = "logistik";
|
||||
};
|
||||
modules = [./home/users/logistik/AZPILOGISTIK05.nix];
|
||||
};
|
||||
@@ -178,6 +183,7 @@
|
||||
extraSpecialArgs = {
|
||||
inherit inputs outputs;
|
||||
hostname = "AZPILOGISTIKTEST";
|
||||
username = "logistik";
|
||||
};
|
||||
modules = [./home/users/logistik/AZPILOGISTIKTEST.nix];
|
||||
};
|
||||
@@ -186,6 +192,7 @@
|
||||
extraSpecialArgs = {
|
||||
inherit inputs outputs;
|
||||
hostname = "AZPIPRODUKTION01";
|
||||
username = "produktion";
|
||||
};
|
||||
modules = [./home/users/produktion/AZPIPRODUKTION01.nix];
|
||||
};
|
||||
@@ -194,6 +201,7 @@
|
||||
extraSpecialArgs = {
|
||||
inherit inputs outputs;
|
||||
hostname = "AZPIPRODUKTION02";
|
||||
username = "produktion";
|
||||
};
|
||||
modules = [./home/users/produktion/AZPIPRODUKTION02.nix];
|
||||
};
|
||||
@@ -202,6 +210,7 @@
|
||||
extraSpecialArgs = {
|
||||
inherit inputs outputs;
|
||||
hostname = "AZPIPRODUKTION03";
|
||||
username = "produktion";
|
||||
};
|
||||
modules = [./home/users/produktion/AZPIPRODUKTION03.nix];
|
||||
};
|
||||
@@ -210,6 +219,7 @@
|
||||
extraSpecialArgs = {
|
||||
inherit inputs outputs;
|
||||
hostname = "AZPIPRODUKTION04";
|
||||
username = "produktion";
|
||||
};
|
||||
modules = [./home/users/produktion/AZPIPRODUKTION04.nix];
|
||||
};
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
lib,
|
||||
pkgs,
|
||||
hostname ? "AZPILOGISTIK01",
|
||||
username ? "logistik"
|
||||
...
|
||||
}: {
|
||||
# Home Manager needs a bit of information about you and the paths it should
|
||||
@@ -345,7 +346,7 @@
|
||||
# Systemd Timer für nächtliches home-manager update
|
||||
# Der hostname wird zur Build-Zeit in das Script eingebettet
|
||||
systemd.user.services.home-manager-update = let
|
||||
flakeConfig = "logistik@${hostname}";
|
||||
flakeConfig = "${username}@${hostname}";
|
||||
repoUrl = "git+https://git.az-gruppe.com/AZ-Intec-GmbH/AZ-NIX.git";
|
||||
in {
|
||||
Unit = {
|
||||
|
||||
Reference in New Issue
Block a user