This commit is contained in:
ari committed 2025-02-23 15:39:02 -05:00
1 parent 1951c4c9a0
commit c43a5cbe04
6 files changed
-132

No files matched your search

-18
View File
@@ -1,18 +0,0 @@
{ config, pkgs, ... }:
{
environment.systemPackages = with pkgs; [
rocmPackages.rocm-smi
rocmPackages.rpp
rocmPackages.rocm-core
rocmPackages.rocm-runtime
rocmPackages.hipblas
rocmPackages.llvm.clang
amdgpu_top
amdctl
];
boot.initrd.kernelModules = [ "amdgpu" ];
hardware.opengl.extraPackages = with pkgs; [
rocmPackages.clr.icd
amdvlk
];
}
-13
View File
@@ -1,13 +0,0 @@
{ ... }:
{
imports =
[
./hardware-configuration.nix
(import ./main.nix {
hostName = "";
stateVersion = "23.05";
dbConnectionStr = "";
K3SToken = "";
})
];
}
-36
View File
@@ -1,36 +0,0 @@
# 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
tmux
];
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
@@ -1,23 +0,0 @@
{
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;
}
-21
View File
@@ -1,21 +0,0 @@
# 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;
nix.optimise.automatic = true;
nix.optimise.dates = [ "01:30" ];
}
-21
View File
@@ -1,21 +0,0 @@
# 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
];
}