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