This commit is contained in:
Ariel Sosnovsky committed 2024-02-06 21:58:57 -05:00
1 parent 546764962f
commit 7c3be45181
5 files changed
+1 -90

No files matched your search

-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, ... }:
{
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
./k3s.nix
./users.nix
./settings.nix
];
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
networking.hostName = "minisf1"; # Define your hostname.
system.stateVersion = "23.05"; # Did you read the comment?
}
-29
View File
@@ -1,29 +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.
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; [
pkgs.k3s
nfs-utils
dig
argocd
pkgs.git
];
services.k3s.enable = true;
services.k3s.role = "server";
services.k3s.extraFlags = toString [
];
networking.firewall.allowedTCPPorts = [ 22 80 443 ];
networking.firewall.allowedUDPPorts = [ 80 443 ];
}
-19
View File
@@ -1,19 +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;
}
-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
];
}
+1
View File
@@ -2,6 +2,7 @@
{
imports =
[
./hardware-configuration.nix
(import ./main.nix {
hostName = "";
stateVersion = "23.05";