initial commit
Some checks failed
Nix CI / build (push) Failing after 31s

This commit is contained in:
Rustam Efimov 2026-04-01 08:50:01 +03:00
commit 30ce0dafc2
No known key found for this signature in database
195 changed files with 8902 additions and 0 deletions

23
hosts/elaris/default.nix Normal file
View file

@ -0,0 +1,23 @@
{ pkgs, ... }:
{
imports = [
./hardware-configuration.nix
./secrets.nix
./machine.nix
../../modules/audio.nix
../../modules/throne.nix
../../modules/opentablet.nix
];
boot.loader.grub = {
enable = true;
device = "/dev/sdc";
useOSProber = true;
};
programs.dconf.enable = true;
environment.systemPackages = with pkgs; [
android-tools
];
}

View file

@ -0,0 +1,30 @@
{
boot = {
initrd = {
availableKernelModules = [
"xhci_pci"
"ahci"
"usbhid"
"usb_storage"
"sd_mod"
];
kernelModules = [ ];
};
kernelModules = [ "kvm-amd" ];
extraModulePackages = [ ];
};
fileSystems."/" = {
device = "/dev/disk/by-uuid/5a3b4297-3879-4adc-a8eb-6b7c13bfcb81";
fsType = "ext4";
};
swapDevices = [
{ device = "/dev/disk/by-uuid/ba42c990-1896-4a4d-8a08-d5ada45c4b72"; }
];
hardware = {
graphics.enable = true;
nvidia.modesetting.enable = true;
};
}

7
hosts/elaris/machine.nix Normal file
View file

@ -0,0 +1,7 @@
{
machine.xray-3x-ui = {
enable = true;
domain = "3x-ui.ruject.fun";
subscriptions.domain = "sub.3x-ui.ruject.fun";
};
}

16
hosts/elaris/secrets.nix Normal file
View file

@ -0,0 +1,16 @@
{
sops.secrets = {
"elaris/publicKey" = {
sopsFile = ./../../secrets/elaris.yaml;
mode = "0644";
owner = "root";
group = "root";
};
"elaris/privateKey" = {
sopsFile = ./../../secrets/elaris.yaml;
mode = "0600";
owner = "root";
group = "root";
};
};
}