[Init]
This commit is contained in:
33
hosts/valinor/default.nix
Executable file
33
hosts/valinor/default.nix
Executable file
@@ -0,0 +1,33 @@
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
imports =
|
||||
[
|
||||
../_/cfg.nix
|
||||
./hardware-configuration.nix
|
||||
../_/host.nix
|
||||
];
|
||||
|
||||
boot.loader = {
|
||||
systemd-boot = {
|
||||
enable = true;
|
||||
configurationLimit = 8;
|
||||
};
|
||||
efi = {
|
||||
canTouchEfiVariables = true;
|
||||
efiSysMountPoint = "/boot/efi";
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
hostcfg = {
|
||||
hostname = "valinor";
|
||||
wlp_if = "wlp9s0";
|
||||
wg_ip4 = "10.10.1.5/24";
|
||||
wg_ip6 = "fd10:10:10::5/128";
|
||||
wg_pk = config.sops.secrets.valinor.wg_priv.path;
|
||||
};
|
||||
|
||||
}
|
34
hosts/valinor/hardware-configuration.nix
Executable file
34
hosts/valinor/hardware-configuration.nix
Executable file
@@ -0,0 +1,34 @@
|
||||
# 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 = [ ];
|
||||
|
||||
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "usb_storage" "ahci" "sd_mod" "sr_mod" ];
|
||||
boot.initrd.kernelModules = [ ];
|
||||
boot.kernelModules = [ "v4l2loopback" "kvm-amd" ];
|
||||
boot.kernelPackages = pkgs.linuxPackages_latest;
|
||||
boot.extraModulePackages = with config.boot.kernelPackages; [ v4l2loopback.out ];
|
||||
|
||||
virtualisation.libvirtd.enable = true;
|
||||
|
||||
fileSystems."/" =
|
||||
{ device = "/dev/disk/by-uuid/6f1fc595-b751-4917-ba87-7b8b02713e6b";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
fileSystems."/boot/efi" =
|
||||
{ device = "/dev/disk/by-uuid/B532-133F";
|
||||
fsType = "vfat";
|
||||
};
|
||||
|
||||
swapDevices =
|
||||
[ { device = "/dev/disk/by-uuid/72ff6aac-d445-4e46-a474-2f1d9be7ea87"; }
|
||||
];
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
hardware.opengl.driSupport32Bit = true;
|
||||
}
|
9
hosts/valinor/home.nix
Executable file
9
hosts/valinor/home.nix
Executable file
@@ -0,0 +1,9 @@
|
||||
{config, pkgs, ...}:
|
||||
|
||||
{
|
||||
|
||||
imports = [
|
||||
../_/home.nix
|
||||
];
|
||||
|
||||
}
|
Reference in New Issue
Block a user