Add sayuri

This commit is contained in:
Simon Bruder 2020-10-17 23:18:22 +02:00
parent 49e1d531da
commit 5c56bcb727
No known key found for this signature in database
GPG key ID: 6F03E0000CC5B62F
5 changed files with 94 additions and 0 deletions

18
machines/sayuri/README.md Normal file
View file

@ -0,0 +1,18 @@
# sayuri
## Hardware
HP Z440 workstation.
* [Intel Xeon E5-1620 v4](https://ark.intel.com/content/www/us/en/ark/products/92991/intel-xeon-processor-e5-1620-v4-10m-cache-3-50-ghz.html)
* 16 GiB DDR4 ECC memory
* 256GB micron SSD
* Sapphire Nitro+ Radeon RX 480
## Purpose
FIMXE
## Name
Sayuri Kurata is a student from *Kanon*

View file

@ -0,0 +1,43 @@
{ config, pkgs, ... }:
{
imports =
[
./hardware-configuration.nix
../../modules/cpu/intel.nix
../../modules/gpu/amd.nix
(import ../../modules/libvirt.nix { inherit pkgs; gui = true; })
../../modules/restic.nix
../../modules/ssd.nix
../../profiles/base.nix
../../profiles/dev.nix
../../profiles/gui.nix
../../users/simon/base.nix
];
boot.loader.grub.device = "/dev/disk/by-id/ata-MTFDDAK256TBN-1AR15ABHA_UFZMQ01ZR50NMM";
boot.initrd.luks.devices = {
root = {
name = "root";
device = "/dev/disk/by-uuid/d7e4d213-8a13-4059-a011-0f68081e86d8";
preLVM = true;
allowDiscards = true;
};
};
fileSystems.data = {
mountPoint = "/data";
device = "/dev/mapper/data";
encrypted = {
label = "data";
enable = true;
blkDev = "/dev/disk/by-uuid/576088d4-9aae-4159-a028-feadb2621a1a";
keyFile = "/mnt-root" + toString ./secrets/data_luks_key;
};
};
networking.hostName = "sayuri";
networking.wireguard.interfaces.wg-home.ips = [ "10.80.0.5/24" ];
}

View file

@ -0,0 +1,33 @@
# Do not modify this file! It was generated by nixos-generate-config
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
{ config, lib, pkgs, modulesPath, ... }:
{
imports =
[
(modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [ "ahci" "xhci_pci" "ehci_pci" "usb_storage" "usbhid" "sd_mod" ];
boot.initrd.kernelModules = [ "dm-snapshot" ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{
device = "/dev/disk/by-uuid/024e31ab-aa98-4070-95be-7980043541ac";
fsType = "ext4";
};
fileSystems."/boot" =
{
device = "/dev/disk/by-uuid/c5bde64b-c629-438d-a78b-c4341796dae9";
fsType = "ext2";
};
swapDevices =
[{ device = "/dev/disk/by-uuid/78f5277f-a6e5-4297-99cd-d3ea5de5317e"; }];
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
}

Binary file not shown.

Binary file not shown.