This commit is contained in:
commit
30ce0dafc2
195 changed files with 8902 additions and 0 deletions
23
hosts/elaris/default.nix
Normal file
23
hosts/elaris/default.nix
Normal 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
|
||||
];
|
||||
}
|
||||
30
hosts/elaris/hardware-configuration.nix
Normal file
30
hosts/elaris/hardware-configuration.nix
Normal 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
7
hosts/elaris/machine.nix
Normal 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
16
hosts/elaris/secrets.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue