Initial commit
This commit is contained in:
commit
f1ea7e7ec7
27
flake.lock
Normal file
27
flake.lock
Normal file
|
|
@ -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
|
||||
}
|
||||
18
flake.nix
Normal file
18
flake.nix
Normal file
|
|
@ -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
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
59
host/chat.allthe.gay/configuration.nix
Normal file
59
host/chat.allthe.gay/configuration.nix
Normal file
|
|
@ -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
|
||||
}
|
||||
30
host/chat.allthe.gay/hardware-configuration.nix
Normal file
30
host/chat.allthe.gay/hardware-configuration.nix
Normal file
|
|
@ -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";
|
||||
}
|
||||
Loading…
Reference in a new issue