#W# Initial Commit: NixOS

This commit is contained in:
WarrentyExpired 2026-07-30 09:20:57 -04:00
commit f79adc1a63
77 changed files with 15125 additions and 0 deletions

16
hosts/DistroboxArch.sh Executable file
View file

@ -0,0 +1,16 @@
if command -v yay &>/dev/null; then
echo "Yay installed, skipping"
else
echo "Installing Yay"
sudo pacman -Syu
sudo pacman -S --needed git base-devel
git clone https://aur.archlinux.org/yay.git
cd yay
makepkg -si
cd ../
rm -rf yay
fi
echo "Installing pacman packages"
sudo pacman -S --needed nano ttf-dejavu ttf-liberation libice libsm pipewire pipewire-pulse mono git eza nano
echo "Installing yay packages"
yay -S --needed ironpython3

View file

@ -0,0 +1,246 @@
{ config, pkgs, ... }:
{
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
];
nixpkgs.overlays = [
(_: prev: {
openldap = prev.openldap.overrideAttrs {
doCheck = false; # False is a bit more honest on x86_64 systems
};
})
];
# Bootloader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
boot.loader.systemd-boot.consoleMode = "auto";
boot = {
consoleLogLevel = 3;
initrd.verbose = false;
initrd.systemd.enable = true;
kernelParams = [
"quiet" "splash" "intremap=on" "boot.shell_on_fail" "udev.log_priority=3" "rd.systemd.show_status=auto" "ipv6.disable=1"
];
plymouth.enable = true;
plymouth.font = "${pkgs.hack-font}/share/fonts/truetype/Hack-Regular.ttf";
plymouth.logo = "${pkgs.nixos-icons}/share/icons/hicolor/128x128/apps/nix-snowflake.png";
};
hardware.bluetooth = {
enable = true;
powerOnBoot = true;
settings = {
General = {
Experimental = true;
FastConnectable = true;
};
Policy = {
AutoEnable = true;
};
};
};
services.dbus.implementation = "dbus";
networking.hostName = "damagedProperty"; # Define your hostname.
networking.networkmanager.enable = true;
networking.enableIPv6 = false;
# Enable Flakes
nix.settings.experimental-features = [ "nix-command" "flakes" ];
time.timeZone = "America/New_York";
i18n.defaultLocale = "en_US.UTF-8";
i18n.extraLocaleSettings = {
LC_ADDRESS = "en_US.UTF-8";
LC_IDENTIFICATION = "en_US.UTF-8";
LC_MEASUREMENT = "en_US.UTF-8";
LC_MONETARY = "en_US.UTF-8";
LC_NAME = "en_US.UTF-8";
LC_NUMERIC = "en_US.UTF-8";
LC_PAPER = "en_US.UTF-8";
LC_TELEPHONE = "en_US.UTF-8";
LC_TIME = "en_US.UTF-8";
};
services.xserver.xkb = {
layout = "us";
variant = "";
};
users.users.warrentyexpired = {
isNormalUser = true;
shell = pkgs.fish;
description = "Micah L. Zellers";
extraGroups = [ "networkmanager" "wheel" "input" "joystick" ];
packages = with pkgs; [];
};
# Allow unfree packages
nixpkgs.config.allowUnfree = true;
environment.systemPackages = with pkgs; [
wget
tmux
git
keyd
polkit_gnome
unzip
unrar
mosh
p7zip
tmuxinator
usbutils
github-cli
libdeflate
fastfetch
imv
wl-clipboard
btop
fzf
bat
ncdu
eza
gnome-text-editor
fuzzel
ghostty
xwayland
xwayland-satellite
vivaldi
vivaldi-ffmpeg-codecs
nautilus
gnome-disk-utility
discord
gnome-calculator
pinta
vlc
mpv
quickshell
matugen
cliphist
distrobox
podman
file-roller
vicinae
zed-editor
mono
screen
(bottles.override { removeWarningPopup = true; })
gnumake
lazygit
];
virtualisation.podman = {
enable = true;
dockerCompat = true;
defaultNetwork.settings.dns_enable = true;
};
services.gvfs.enable = true;
services.udisks2.enable = true;
services.printing.enable = true;
security.rtkit.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
};
systemd.user.services.polkit-gnome-authentication-agent-1 = {
description = "gnome-authentication-agent-1";
wantedBy = [ "graphical-session.target" ];
serviceConfig = {
Type = "simple";
ExecStart = "${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1";
Restart = "on-failure";
RestartSec = 1;
TimeoutStopSec = 10;
};
};
programs.nix-ld.enable = true;
programs.nix-ld.libraries = with pkgs; [
libpulseaudio
alsa-lib
icu
openssl
zlib
fontconfig
freetype
libGL
sdl3
vulkan-loader
libX11
libXext
libXcursor
libXi
libXrandr
libICE
libSM
mono
libdeflate
libargon2
];
programs.steam.enable = true;
programs.fish.enable = true;
programs.niri.enable = true;
programs.dms-shell = {
enable = true;
systemd.enable = true;
enableSystemMonitoring = true;
enableDynamicTheming = true;
enableAudioWavelength = true;
enableClipboardPaste = true;
};
services.displayManager.dms-greeter = {
enable = true;
compositor.name = "niri";
};
systemd.user.services.xwayland-satellite = {
description = "Xwayland outside your Wayland compositor";
wantedBy = [ "graphical-session.target" ];
partOf = [ "graphical-session.target" ];
serviceConfig = {
ExecStart = "${pkgs.xwayland-satellite}/bin/xwayland-satellite";
Restart = "on-failure";
};
};
fonts.packages = with pkgs; [
nerd-fonts.jetbrains-mono
nerd-fonts.fira-code
nerd-fonts.meslo-lg
];
fonts.fontconfig = {
defaultFonts = {
monospace = [ "JetBrainsMono Nerd Font" ];
sansSerif = [ "DejaVu Sans" ];
};
};
nix.gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 7d";
};
nix.settings.auto-optimise-store = true;
services.avahi = {
enable = true;
nssmdns4 = true;
openFirewall = true;
};
services.blueman.enable = true;
services.keyd = {
enable = true;
keyboards = {
default = {
ids = [ "*" ];
settings = {
main = {
capslock = "~";
};
shift = {
capslock = "`";
left = "home";
right = "end";
};
};
};
};
};
# Enable the OpenSSH daemon.
# services.openssh.enable = true;
# Open ports in the firewall.
# networking.firewall.allowedTCPPorts = [ ... ];
# networking.firewall.allowedUDPPorts = [ ... ];
# Or disable the firewall altogether.
# networking.firewall.enable = false;
system.stateVersion = "25.11"; # Did you read the comment?
}

View file

@ -0,0 +1,50 @@
# 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 = [ "nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/mapper/luks-a656cbb9-03cc-4c26-96c0-35df28f30e75";
fsType = "btrfs";
options = [ "subvol=@" ];
};
boot.initrd.luks.devices."luks-a656cbb9-03cc-4c26-96c0-35df28f30e75".device = "/dev/disk/by-uuid/a656cbb9-03cc-4c26-96c0-35df28f30e75";
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/6948-9FE2";
fsType = "vfat";
options = [ "fmask=0077" "dmask=0077" ];
};
fileSystems."/home" =
{ device = "/dev/mapper/luks-a7cfbbf7-5d22-46e4-85c4-e64666db4ab6";
fsType = "btrfs";
};
boot.initrd.luks.devices."luks-a7cfbbf7-5d22-46e4-85c4-e64666db4ab6".device = "/dev/disk/by-uuid/a7cfbbf7-5d22-46e4-85c4-e64666db4ab6";
fileSystems."/mnt/fileStorage" =
{ device = "/dev/mapper/luks-a476201c-0098-41aa-b1d8-c68af6b23e5f";
fsType = "btrfs";
};
boot.initrd.luks.devices."luks-a476201c-0098-41aa-b1d8-c68af6b23e5f".device = "/dev/disk/by-uuid/a476201c-0098-41aa-b1d8-c68af6b23e5f";
swapDevices =
[ { device = "/dev/disk/by-uuid/b287a61e-b01f-48d6-9e59-cd35892e3f88"; }
];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}

1887
hosts/dotnet-install.sh vendored Executable file

File diff suppressed because it is too large Load diff

60
hosts/flakes/tazuo/flake.nix Executable file
View file

@ -0,0 +1,60 @@
{
description = "TazUO FHS Environment";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
};
outputs = { self, nixpkgs }:
let
system = "x86_64-linux";
pkgs = import nixpkgs { inherit system; };
tazuo-fhs = pkgs.buildFHSEnv {
name = "tazuo-fhs";
targetPkgs = pkgs: (with pkgs; [
libpulseaudio
alsa-lib
icu
openssl
zlib
fontconfig
freetype
libGL
sdl3
vulkan-loader
libX11
libXext
libXcursor
libXi
libXrandr
libICE
libSM
]);
runScript = "bash -c '/mnt/fileStorage/TazUOLauncher/TazUOLauncher'";
};
tazuo-desktop = pkgs.makeDesktopItem {
name = "TazUO";
exec = "${tazuo-fhs}/bin/tazuo-fhs";
icon = "tazuo-icon";
desktopName = "TazUO";
genericName = "Ultima Online Client";
categories = [ "Game" ];
};
tazuo-icon = pkgs.stdenv.mkDerivation {
name = "tazuo-icon";
src = ./.;
installPhase = ''
mkdir -p $out/share/icons/hicolor/256x256/apps
cp tazuo-icon.png $out/share/icons/hicolor/256x256/apps/tazuo-icon.png
'';
};
in
{
packages.${system}.default = pkgs.symlinkJoin {
name = "tazuo-package";
paths = [ tazuo-fhs tazuo-desktop tazuo-icon ];
};
};
}

2
hosts/flakes/tazuo/install.sh Executable file
View file

@ -0,0 +1,2 @@
nix flake update
nix profile add .

BIN
hosts/flakes/tazuo/tazuo-icon.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

View file

@ -0,0 +1,114 @@
{ config, pkgs, ... }:
{
imports =
[
./hardware-configuration.nix
];
# Bootloader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
boot = {
consoleLogLevel = 3;
initrd.verbose = false;
initrd.systemd.enable = true;
kernelParams = [
"quiet" "splash" "intremap=on" "boot.shell_on_fail" "udev.log_priority=3" "rd.systemd.show_status=auto"
];
plymouth.enable = true;
plymouth.font = "${pkgs.hack-font}/share/fonts/truetype/Hack-Regular.ttf";
plymouth.logo = "${pkgs.nixos-icons}/share/icons/hicolor/128x128/apps/nix-snowflake.png";
};
networking.hostName = "damagedLaptop"; # Define your hostname.
networking.networkmanager.enable = true;
# Enable Flakes
nix.settings.experimental-features = [ "nix-command" "flakes" ];
time.timeZone = "America/New_York";
i18n.defaultLocale = "en_US.UTF-8";
i18n.extraLocaleSettings = {
LC_ADDRESS = "en_US.UTF-8";
LC_IDENTIFICATION = "en_US.UTF-8";
LC_MEASUREMENT = "en_US.UTF-8";
LC_MONETARY = "en_US.UTF-8";
LC_NAME = "en_US.UTF-8";
LC_NUMERIC = "en_US.UTF-8";
LC_PAPER = "en_US.UTF-8";
LC_TELEPHONE = "en_US.UTF-8";
LC_TIME = "en_US.UTF-8";
};
services.xserver.enable = true;
services.xserver.displayManager.lightdm.enable = true;
services.xserver.desktopManager.cinnamon.enable = true;
services.xserver.xkb = {
layout = "us";
variant = "";
};
services.printing.enable = true;
services.pulseaudio.enable = false;
security.rtkit.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
};
# Enable touchpad support (enabled default in most desktopManager).
# services.xserver.libinput.enable = true;
users.users.warrentyexpired = {
isNormalUser = true;
description = "Micah L. Zellers";
extraGroups = [ "networkmanager" "wheel" ];
packages = with pkgs; [
vivaldi
#vivaldi-ffmpeg-codes
discord
vlc
mpv
];
};
users.users.dana = {
isNormalUser = true;
description = "Dana L. Zellers";
extraGroups = [ "networkmanager" "wheel" ];
packages = with pkgs; [
];
};
programs.firefox.enable = true;
nixpkgs.config.allowUnfree = true;
# $ nix search wget
environment.systemPackages = with pkgs; [
wget
curl
git
unzip
unrar
p7zip
tmux
tmuxinator
btop
fzf
bat
ncdu
google-chrome
];
services.gvfs.enable = true;
services.udisks2.enable = true;
nix.gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 7d";
};
nix.settings.auto-optimise-store = true;
services.avahi = {
enable = true;
nssmdns4 = true;
openFirewall = true;
};
# Enable the OpenSSH daemon.
# services.openssh.enable = true;
# Open ports in the firewall.
# networking.firewall.allowedTCPPorts = [ ... ];
# networking.firewall.allowedUDPPorts = [ ... ];
# Or disable the firewall altogether.
# networking.firewall.enable = false;
system.stateVersion = "25.11"; # Did you read the comment?
}

View file

@ -0,0 +1,50 @@
# 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 = [ "nvme" "xhci_pci" "usb_storage" "sd_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/mapper/luks-f9489eb0-dbb2-4d70-b18a-f1c7f32f8090";
fsType = "btrfs";
options = [ "subvol=@" ];
};
boot.initrd.luks.devices."luks-f9489eb0-dbb2-4d70-b18a-f1c7f32f8090".device = "/dev/disk/by-uuid/f9489eb0-dbb2-4d70-b18a-f1c7f32f8090";
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/81B7-DE3A";
fsType = "vfat";
options = [ "fmask=0077" "dmask=0077" ];
};
fileSystems."/home" =
{ device = "/dev/mapper/luks-356a8b96-5644-436a-9c0d-cd1f16865b5c";
fsType = "btrfs";
};
boot.initrd.luks.devices."luks-356a8b96-5644-436a-9c0d-cd1f16865b5c".device = "/dev/disk/by-uuid/356a8b96-5644-436a-9c0d-cd1f16865b5c";
fileSystems."/mnt/fileStorage" =
{ device = "/dev/mapper/luks-97d5b300-9b64-49d6-b8a0-6335afe3e072";
fsType = "btrfs";
};
boot.initrd.luks.devices."luks-97d5b300-9b64-49d6-b8a0-6335afe3e072".device = "/dev/disk/by-uuid/97d5b300-9b64-49d6-b8a0-6335afe3e072";
swapDevices =
[ { device = "/dev/disk/by-uuid/35fa175f-6ace-49b8-a131-877531c97c7b"; }
];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}

4
hosts/sshPerms.sh Executable file
View file

@ -0,0 +1,4 @@
#!/usr/bin/env bash
chmod 700 $HOME/.ssh
chmod 644 $HOME/.ssh/id_ed25519.pub
chmod 600 $HOME/.ssh/id_ed25519