commit f1ea7e7ec77091037c7f40bb4cff9025fab749c6 Author: root Date: Wed Feb 18 03:48:26 2026 +0000 Initial commit diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..5dcdbd4 --- /dev/null +++ b/flake.lock @@ -0,0 +1,27 @@ +{ + "nodes": { + "nixpkgs": { + "locked": { + "lastModified": 1771008912, + "narHash": "sha256-gf2AmWVTs8lEq7z/3ZAsgnZDhWIckkb+ZnAo5RzSxJg=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "a82ccc39b39b621151d6732718e3e250109076fa", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixos-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "root": { + "inputs": { + "nixpkgs": "nixpkgs" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..8239e13 --- /dev/null +++ b/flake.nix @@ -0,0 +1,18 @@ +{ + description = "Metara stuff i guess"; + inputs = { + nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; + }; + + outputs = inputs: with inputs; { + nixosConfigurations = { + chat-allthe-gay = nixpkgs.lib.nixosSystem { + system = "x86_64-linux"; + modules = [ + ./host/chat.allthe.gay/hardware-configuration.nix + ./host/chat.allthe.gay/configuration.nix + ]; + }; + }; + }; +} diff --git a/host/chat.allthe.gay/configuration.nix b/host/chat.allthe.gay/configuration.nix new file mode 100644 index 0000000..b669284 --- /dev/null +++ b/host/chat.allthe.gay/configuration.nix @@ -0,0 +1,59 @@ +{pkgs,lib,...}: +{ + boot = { + kernelPackages = pkgs.linuxPackages_latest; + loader.grub = { + enable = true; + device = "/dev/vda"; + efiSupport = false; + }; + }; + networking = { + hostName = "chat-allthe-gay"; + wireless.enable = false; + nameservers = lib.mkForce [ "1.1.1.1" "1.0.0.1" "8.8.8.8" "8.8.4.4" ]; + firewall.enable = lib.mkForce true; + }; + systemd.network = { + enable = true; + networks.ens18 = { + name = "ens18"; + DHCP = "no"; + routes = [ + {Gateway = "172.30.0.1";} + ]; + address = ["172.30.0.50/24"]; + }; + }; + + services.irqbalance.enable = true; + environment.memoryAllocator.provider = "jemalloc"; + nix.nrBuildUsers = 128; + + environment.systemPackages = with pkgs; [ + neofetch + lnav + git + lsd + duf + btop + kitty.terminfo + jq + nano + cloud-utils + dig + pv + vimPlugins.vim-nix + ]; + nix = { + settings = { + experimental-features = ["nix-command" "flakes"]; + }; + }; + security = { + polkit.enable = true; + sudo.wheelNeedsPassword = false; + }; + + system.stateVersion = "26.11"; # Emma [it/its] - NEVER CHANGE THIS +} diff --git a/host/chat.allthe.gay/hardware-configuration.nix b/host/chat.allthe.gay/hardware-configuration.nix new file mode 100644 index 0000000..366bd60 --- /dev/null +++ b/host/chat.allthe.gay/hardware-configuration.nix @@ -0,0 +1,30 @@ +# 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 + "/profiles/qemu-guest.nix") + ]; + + boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "virtio_pci" "sr_mod" "virtio_blk" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ "kvm-intel" ]; + boot.extraModulePackages = [ ]; + boot.supportedFilesystems = [ "xfs" ]; + + fileSystems."/" = + { device = "/dev/disk/by-uuid/8a4b3704-66c7-4939-8159-6a099ef8ad54"; + fsType = "xfs"; + }; + + fileSystems."/data" = + { device = "/dev/disk/by-uuid/0e89049e-0936-403e-b88b-27cd1cfd3e09"; + fsType = "xfs"; + }; + + swapDevices = [ ]; + + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; +}