missing modules

This commit is contained in:
Ari committed 2024-03-21 10:21:34 -04:00
1 parent 270028c58d
commit b1be2d7bc1
7 files changed
+116 -5

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
{ ... }:
{
imports =
[
./hardware-configuration.nix
(import ./main.nix {
hostName = "";
stateVersion = "23.05";
dbConnectionStr = "";
K3SToken = "";
})
];
}
+37
View File
@@ -0,0 +1,37 @@
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running ‘nixos-help’).
{
hostName,
dbConnectionStr,
K3SToken
}:
{ config, pkgs, ... }:
{
# Bootloader.
boot.initrd = {
supportedFilesystems = [ "nfs" ];
kernelModules = [ "nfs" ];
};
i18n.defaultLocale = "en_CA.UTF-8";
services.nfs.server.enable = true;
services.rpcbind.enable = true;
environment.systemPackages = with pkgs; [
k3s
nfs-utils
git
rocmPackages.rocm-smi
rocmPackages.rpp
];
services.k3s.enable = true;
services.k3s.role = "server";
services.k3s.extraFlags = toString [
"--tls-san"
hostName
"--datastore-endpoint" dbConnectionStr
"--token" K3SToken
];
networking.firewall.allowedTCPPorts = [ 22 80 443 ];
networking.firewall.allowedUDPPorts = [ 80 443 ];
}
+23
View File
@@ -0,0 +1,23 @@
{
hostName,
stateVersion,
dbConnectionStr,
K3SToken
}:
{ config, pkgs, ... }:
{
imports =
[
(import ./k3s.nix {
hostName = hostName;
dbConnectionStr = dbConnectionStr;
K3SToken = K3SToken;
})
./users.nix
./settings.nix
];
# Bootloader.
networking.hostName = hostName;
system.stateVersion = stateVersion;
}
+19
View File
@@ -0,0 +1,19 @@
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running ‘nixos-help’).
{ config, pkgs, ... }:
{
# Bootloader.
networking.networkmanager.enable = true;
time.timeZone = "America/Toronto";
i18n.defaultLocale = "en_CA.UTF-8";
services.xserver = {
layout = "us";
xkbVariant = "";
};
nixpkgs.config.allowUnfree = true;
services.openssh.enable = true;
networking.firewall.enable = false;
}
+21
View File
@@ -0,0 +1,21 @@
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running ‘nixos-help’).
{ config, pkgs, ... }:
{
users.users.ari = {
isNormalUser = true;
description = "Ari";
extraGroups = [ "networkmanager" "wheel" "root" ];
packages = with pkgs; [];
};
environment.systemPackages = with pkgs; [
pciutils
usbutils
jq
];
}
+2 -3
View File
@@ -5,7 +5,6 @@
hostName,
dbConnectionStr,
K3SToken,
additionalPkgs = [],
}:
{ config, pkgs, ... }:
@@ -18,11 +17,11 @@
i18n.defaultLocale = "en_CA.UTF-8";
services.nfs.server.enable = true;
services.rpcbind.enable = true;
environment.systemPackages = builtins.concat([
environment.systemPackages = [
pkgs.k3s
pkgs.nfs-utils
pkgs.git
], additionalPkgs);
];
services.k3s.enable = true;
services.k3s.role = "server";
services.k3s.extraFlags = toString [
+1 -2
View File
@@ -2,7 +2,7 @@
hostName,
stateVersion,
dbConnectionStr,
K3SToken
K3SToken,
additionalPkgs = [],
}:
{ config, pkgs, ... }:
@@ -13,7 +13,6 @@
hostName = hostName;
dbConnectionStr = dbConnectionStr;
K3SToken = K3SToken;
additionalPkgs = additionalPkgs;
})
./users.nix
./settings.nix