Add project to repo

This commit is contained in:
panotaka
2023-11-21 00:39:36 -04:00
parent 26064838f8
commit ce7c15186e
31 changed files with 1315 additions and 0 deletions

58
hosts/Equinox/default.nix Normal file
View File

@@ -0,0 +1,58 @@
{ config, pkgs, inputs, ... }:
let
hostname = "Equinox";
in
{
# Allow unfree packages
nixpkgs.config.allowUnfree = true;
# System version
system.stateVersion = "22.11";
# Import hardware configuration
imports = [
../../modules/system.nix
inputs.nixos-hardware.nixosModules.dell-xps-15-9510
inputs.nixos-hardware.nixosModules.dell-xps-15-9510-nvidia
inputs.disko.nixosModules.disko
./disko.nix
];
# Set hostname and timezone
networking.hostName = hostname;
# Bootloader configuration
boot = {
kernelModules = [ "kvm-intel" ];
extraModulePackages = [ ];
initrd = {
kernelModules = [ ];
availableKernelModules = [
"xhci_pci"
"thunderbolt"
"vmd"
"nvme"
"usb_storage"
"sd_mod"
"rtsx_pci_sdmmc"
];
};
loader = {
systemd-boot.enable = true;
efi = {
canTouchEfiVariables = true;
};
};
};
}

59
hosts/Equinox/disko.nix Normal file
View File

@@ -0,0 +1,59 @@
{
disko.devices = {
disk = {
nvme0n1 = {
type = "disk";
device = "/dev/vda";
content = {
type = "gpt";
partitions = {
ESP = {
size = "512M";
type = "EF00";
content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot";
mountOptions = [
"defaults"
];
};
};
luks = {
size = "100%";
content = {
type = "luks";
name = "crypted";
settings = {
allowDiscards = true;
};
content = {
type = "btrfs";
extraArgs = [ "-f" ];
subvolumes = {
"/root" = {
mountpoint = "/";
mountOptions = [ "compress=zstd" "noatime" ];
};
"/home" = {
mountpoint = "/home";
mountOptions = [ "compress=zstd" "noatime" ];
};
"/nix" = {
mountpoint = "/nix";
mountOptions = [ "compress=zstd" "noatime" ];
};
"/swap" = {
mountpoint = "/.swapvol";
swap.swapfile.size = "40G";
};
};
};
};
};
};
};
};
};
};
}