biotite,thorite: added
This commit is contained in:
parent
3dc3775a6c
commit
2327a171b8
5 changed files with 144 additions and 0 deletions
29
machines/thorite/default.nix
Normal file
29
machines/thorite/default.nix
Normal file
|
@ -0,0 +1,29 @@
|
|||
{ ... }:
|
||||
{
|
||||
imports = [
|
||||
./hardware-configurations.nix
|
||||
];
|
||||
|
||||
networking.hostName = "thorite";
|
||||
networking.useNetworkd = true;
|
||||
systemd.network.enable = true;
|
||||
systemd.network.networks."10-wan" = {
|
||||
matchConfig.MACAddress = "00:51:d3:21:f3:28";
|
||||
networkConfig = {
|
||||
DHCP = "no";
|
||||
Gateway = "23.165.200.1";
|
||||
};
|
||||
address = [ "23.165.200.99/24" ];
|
||||
};
|
||||
|
||||
nixpkgs.system = "x86_64-linux";
|
||||
|
||||
system.stateVersion = "24.11";
|
||||
|
||||
commonSettings = {
|
||||
auth.enable = true;
|
||||
autoupgrade.enable = true;
|
||||
};
|
||||
|
||||
users.users.root.hashedPassword = "$y$j9T$NToEZWJBONjSgRnMd9Ur9/$o6n7a9b8eUILQz4d37oiHCCVnDJ8hZTZt.c.37zFfU.";
|
||||
}
|
40
machines/thorite/hardware-configurations.nix
Normal file
40
machines/thorite/hardware-configurations.nix
Normal file
|
@ -0,0 +1,40 @@
|
|||
{ config, modulesPath, ... }:
|
||||
{
|
||||
imports = [
|
||||
(modulesPath + "/profiles/qemu-guest.nix")
|
||||
];
|
||||
disko.devices = {
|
||||
disk = {
|
||||
main = {
|
||||
type = "disk";
|
||||
device = "/dev/sda";
|
||||
content = {
|
||||
type = "gpt";
|
||||
partitions = {
|
||||
boot = config.diskPartitions.grubMbr;
|
||||
root = config.diskPartitions.btrfs;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
disko.devices.disk.main.imageSize = "10G";
|
||||
|
||||
boot.initrd.availableKernelModules = [
|
||||
"uhci_hcd"
|
||||
"virtio_scsi"
|
||||
"sd_mod"
|
||||
"sr_mod"
|
||||
"ahci"
|
||||
"ata_piix"
|
||||
"virtio_pci"
|
||||
"xen_blkfront"
|
||||
"vmw_pvscsi"
|
||||
];
|
||||
|
||||
boot.loader.grub = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
boot.kernelModules = [ "kvm-intel" ];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue