chore: formatter
This commit is contained in:
15
hosts/common/optional/services/k3s.nix
Normal file
15
hosts/common/optional/services/k3s.nix
Normal file
@@ -0,0 +1,15 @@
|
||||
{pkgs, ...}: {
|
||||
environment.systemPackages = with pkgs; [
|
||||
k3s
|
||||
cifs-utils
|
||||
nfs-utils
|
||||
];
|
||||
|
||||
services.k3s = {
|
||||
enable = true;
|
||||
role = "agent";
|
||||
# Add this before running
|
||||
token = "";
|
||||
serverAddr = "https://rashid:6443";
|
||||
};
|
||||
}
|
||||
8
hosts/common/optional/services/openiscsi.nix
Normal file
8
hosts/common/optional/services/openiscsi.nix
Normal file
@@ -0,0 +1,8 @@
|
||||
{config, ...}: let
|
||||
hostName = config.hostSpec.hostName;
|
||||
in {
|
||||
services.openiscsi = {
|
||||
enable = true;
|
||||
name = "iqn.2016-04.com.open-iscsi:${hostName}";
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user