Added 'thuner' test server

This commit is contained in:
Zonsopkomst 2023-11-29 19:39:15 -06:00
parent 6017e0895e
commit bd0f0d2e25
3 changed files with 199 additions and 0 deletions

View File

@ -87,6 +87,71 @@
];
};
thunar = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
# Common Resources
# Desktop
#./desktop/gnome.nix
#./display/gdm.nix
#./desktop/kde.nix
#./display/sddm.nix
#./desktop/hyprland.nix
# Kernels & RAM
#./common/kernel.zen.nix
#./commmon/swappiness
# Common
#./common/amd.nix
#./common/bluetooth.nix
#./common/CUPS.nix
#./common/duplicati.nix
#./common/hyprland.nix
#./common/pipewire.nix
#./common/time.nix
#./common/docker.nix
#./common/flakeinit.nix
#./common/flatpak.nix
#./common/gaming.nix
#./common/insecure.nix
#./common/networking.nix
#./common/systemd.nix
#./common/terminal.nix
#./common/unfree.nix
#./common/waydroid.nix
#./common/x11.nix
# Host Specific
./hosts/local/thuner/default.nix
./hosts/local/thuner/hardware-configuration.nix
#./hosts/local/thuner/packages.nix
# User Specific
#./users/thuner/flatpak.nix
#./users/thuner/home-manager.nix
#./users/thuner/syncthing.nix
#home-manager.nixosModules.home-manager
#{
# home-manager.useGlobalPkgs = true;
# home-manager.useUserPackages = true;
# home-manager.users.leeuwarden = import ./hosts/local/tyr/home.nix;
#}
#nix-flatpak.nixosModules.nix-flatpak
#{
#}
#hyprland.nixosModules.default
#{programs.hyprland.enable = true;}
];
};
tyr = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [

View File

@ -0,0 +1,100 @@
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
];
# Bootloader.
boot.loader.grub.enable = true;
boot.loader.grub.device = "/dev/sda";
boot.loader.grub.useOSProber = true;
networking.hostName = "thuner"; # Define your hostname.
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
# Configure network proxy if necessary
# networking.proxy.default = "http://user:password@proxy:port/";
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
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
];
# Bootloader.
boot.loader.grub.enable = true;
boot.loader.grub.device = "/dev/sda";
boot.loader.grub.useOSProber = true;
networking.hostName = "thuner"; # Define your hostname.
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
# Configure network proxy if necessary
# networking.proxy.default = "http://user:password@proxy:port/";
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
# Configure keymap in X11
services.xserver = {
layout = "us";
xkbVariant = "";
};
# Define a user account. Don't forget to set a password with passwd.
users.users.thuner = {
isNormalUser = true;
description = "thuner";
extraGroups = [ "networkmanager" "wheel" ];
packages = with pkgs; [];
};
# Allow unfree packages
nixpkgs.config.allowUnfree = true;
# List packages installed in system profile. To search, run:
# $ nix search wget
environment.systemPackages = with pkgs; [
# vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
# wget
];
# Some programs need SUID wrappers, can be configured further or are
# started in user sessions.
# programs.mtr.enable = true;
# programs.gnupg.agent = {
# enable = true;
# enableSSHSupport = true;
# };
# List services that you want to enable:
# Enable the OpenSSH daemon.
services.openssh.enable = true;
# Open ports in the firewall.
networking.firewall.allowedTCPPorts = [ 22 ];
# networking.firewall.allowedUDPPorts = [ ... ];
# Or disable the firewall altogether.
# networking.firewall.enable = false;
# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions
# on your system were taken. Its perfectly fine and recommended to leave
# this value at the release version of the first install of this system.
# Before changing this value read the documentation for this option
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
system.stateVersion = "23.05"; # Did you read the comment?
}

View File

@ -0,0 +1,34 @@
# Do not modify this file! It was generated by nixos-generate-config
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
{ config, lib, pkgs, modulesPath, ... }:
{
imports =
[ (modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "usb_storage" "usbhid" "sd_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/19e5dddb-936e-4257-9ae0-12ac960ae263";
fsType = "ext4";
};
swapDevices =
[ { device = "/dev/disk/by-uuid/32365aea-be53-41f0-a943-e49983b2b803"; }
];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's
# still possible to use this option, but it's recommended to use it in conjunction
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
networking.useDHCP = lib.mkDefault true;
# networking.interfaces.enp7s0.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}