mirror of
https://github.com/kp2pml30/dotfiles.git
synced 2026-02-16 23:34:42 +04:00
add server
This commit is contained in:
parent
284b131058
commit
95f65d9c03
18 changed files with 358 additions and 112 deletions
58
nix/hardware/server.nix
Normal file
58
nix/hardware/server.nix
Normal file
|
|
@ -0,0 +1,58 @@
|
|||
{ pkgs
|
||||
, inputs
|
||||
, lib
|
||||
, ...
|
||||
}:
|
||||
{
|
||||
imports = [
|
||||
./common.nix
|
||||
];
|
||||
|
||||
boot.initrd.availableKernelModules = [
|
||||
"xhci_pci"
|
||||
"ehci_pci"
|
||||
"ahci"
|
||||
"usbhid"
|
||||
"usb_storage"
|
||||
"sd_mod"
|
||||
"virtio_balloon"
|
||||
"virtio_blk"
|
||||
"virtio_pci"
|
||||
"virtio_ring"
|
||||
];
|
||||
|
||||
fileSystems."/" = {
|
||||
device = "/dev/disk/by-uuid/4a450f44-a611-4f12-9628-8d5da7cf0180";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
fileSystems."/boot" = {
|
||||
device = "/dev/disk/by-uuid/985D-9086";
|
||||
fsType = "vfat";
|
||||
options = [ "fmask=0077" "dmask=0077" ];
|
||||
};
|
||||
|
||||
boot = {
|
||||
loader.grub = {
|
||||
enable = true;
|
||||
#efiSupport = true;
|
||||
#efiInstallAsRemovable = true;
|
||||
devices = [ "/dev/vda" ];
|
||||
};
|
||||
};
|
||||
|
||||
services.qemuGuest.enable = true;
|
||||
|
||||
networking = {
|
||||
hostName = "v168671";
|
||||
interfaces.ens3.ipv4.addresses = [ {
|
||||
prefixLength = 24;
|
||||
address = "185.121.233.63";
|
||||
} ];
|
||||
defaultGateway = "185.121.233.1";
|
||||
nameservers = [
|
||||
"1.1.1.1"
|
||||
"8.8.8.8"
|
||||
];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue