This commit is contained in:
2023-04-12 20:32:07 +02:00
committed by soraefir
parent 10fbbc2654
commit a7ef5cf996
96 changed files with 5857 additions and 4 deletions

32
hosts/iriy/default.nix Executable file
View File

@ -0,0 +1,32 @@
{
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 = "iriy";
wlp_if = "wlp9s0";
wg_ip4 = "10.10.1.7/32";
wg_ip6 = "fd10:10:10::7/128";
wg_pk = config.sops.secrets.iriy_wg_priv.path;
};
}

View File

@ -0,0 +1,48 @@
# 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 = [ "nvme" "xhci_pci" "ahci" "usb_storage" "usbhid" "sd_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;
# waydroid.enable = true;
# lxd.enable = true;
docker = {
enable = true;
rootless = {
enable = true;
setSocketVariable = true;
};
};
};
fileSystems."/" =
{ device = "/dev/disk/by-uuid/f612abce-6f3f-439a-8585-6a050e18b7fc";
fsType = "ext4";
};
fileSystems."/boot/efi" =
{ device = "/dev/disk/by-uuid/349E-5086";
fsType = "vfat";
};
swapDevices =
[ {
device = "/dev/disk/by-uuid/42394c4d-2c81-4917-82ff-75a548715a7d";
}];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
hardware.opengl.driSupport32Bit = true;
}

25
hosts/iriy/home.nix Executable file
View File

@ -0,0 +1,25 @@
{config, pkgs, ...}:
{
imports = [
../_/home.nix
];
services.kanshi = {
enable = true;
systemdTarget = "graphical-session.target";
profiles = {
default = {
outputs = [
{
criteria = "CEX CX133 0x00000001";
mode = "1920x1200@59.972";
position = "0,0";
status = "enable";
}
];
};
};
};
}