fix: Attempts to fix reference errors.
This commit is contained in:
parent
714aef3b90
commit
c5d8bbc7b0
3 changed files with 6 additions and 3 deletions
|
@ -1,5 +1,6 @@
|
||||||
let
|
let
|
||||||
pkgs = import <nixpkgs> {};
|
pkgs = import <nixpkgs> {};
|
||||||
|
k3s_token = (import ./secrets.nix).services.k3s.token;
|
||||||
in {
|
in {
|
||||||
imports = [
|
imports = [
|
||||||
./commons.nix
|
./commons.nix
|
||||||
|
@ -16,7 +17,7 @@ in {
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
Type = "simple";
|
Type = "simple";
|
||||||
ExecStart = pkgs.writeShellScript "k3s-hack" ''
|
ExecStart = pkgs.writeShellScript "k3s-hack" ''
|
||||||
k3s agent --token ${services.k3s.token} --server https://kitteh-node-1-k3s-server:6443
|
k3s agent --token ${k3s_token} --server https://kitteh-node-1-k3s-server:6443
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
let
|
let
|
||||||
pkgs = import <nixpkgs> {};
|
pkgs = import <nixpkgs> {};
|
||||||
|
k3s_token = (import ./secrets.nix).services.k3s.token;
|
||||||
in {
|
in {
|
||||||
imports = [
|
imports = [
|
||||||
./commons.nix
|
./commons.nix
|
||||||
|
@ -16,7 +17,7 @@ in {
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
Type = "simple";
|
Type = "simple";
|
||||||
ExecStart = pkgs.writeShellScript "k3s-hack" ''
|
ExecStart = pkgs.writeShellScript "k3s-hack" ''
|
||||||
k3s server --token ${services.k3s.token} --server https://kitteh-node-1-k3s-server:6443 --disable servicelb
|
k3s server --token ${k3s_token} --server https://kitteh-node-1-k3s-server:6443 --disable servicelb
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
|
|
||||||
let
|
let
|
||||||
pkgs = import <nixpkgs> {};
|
pkgs = import <nixpkgs> {};
|
||||||
|
k3s_token = (import ../secrets.nix).services.k3s.token;
|
||||||
in {
|
in {
|
||||||
imports = [
|
imports = [
|
||||||
../commons.nix
|
../commons.nix
|
||||||
|
@ -22,7 +23,7 @@ in {
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
Type = "simple";
|
Type = "simple";
|
||||||
ExecStart = pkgs.writeShellScript "k3s-hack" ''
|
ExecStart = pkgs.writeShellScript "k3s-hack" ''
|
||||||
k3s server --cluster-init --token ${services.k3s.token} --disable servicelb
|
k3s server --cluster-init --token ${k3s_token} --disable servicelb
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Reference in a new issue