96 lines
1.7 KiB
Nix
Executable file
96 lines
1.7 KiB
Nix
Executable file
{
|
|
config,
|
|
pkgs,
|
|
...
|
|
}: {
|
|
imports = [
|
|
./hardware-configuration.nix
|
|
./services
|
|
../../home/wayland/hyprland/wayland.nix
|
|
../../modules
|
|
../../modules/fonts.nix
|
|
];
|
|
|
|
boot.loader = {
|
|
systemd-boot = {
|
|
enable = true;
|
|
configurationLimit = 8;
|
|
};
|
|
efi = {
|
|
canTouchEfiVariables = true;
|
|
efiSysMountPoint = "/boot/efi";
|
|
};
|
|
};
|
|
|
|
boot.extraModulePackages = with config.boot.kernelPackages; [v4l2loopback.out];
|
|
boot.kernelModules = ["v4l2loopback" "kvm-intel"];
|
|
|
|
virtualisation.libvirtd.enable = true;
|
|
|
|
networking = {
|
|
hostName = "tsuki";
|
|
};
|
|
|
|
services.snowflake-proxy.enable = true;
|
|
|
|
services = {
|
|
xserver = {
|
|
enable = true;
|
|
videoDrivers = ["nvidia"];
|
|
layout = "us";
|
|
xkbVariant = "";
|
|
};
|
|
};
|
|
|
|
services.pcscd.enable = true;
|
|
|
|
sound.enable = true;
|
|
hardware.pulseaudio.enable = false;
|
|
security.rtkit.enable = true;
|
|
services.pipewire = {
|
|
enable = true;
|
|
alsa.enable = true;
|
|
alsa.support32Bit = true;
|
|
pulse.enable = true;
|
|
wireplumber.enable = true;
|
|
};
|
|
|
|
programs.steam = {
|
|
enable = true;
|
|
};
|
|
|
|
security.polkit.enable = true;
|
|
security.pam.services.swaylock = {
|
|
text = ''
|
|
auth include login
|
|
'';
|
|
};
|
|
|
|
hardware = {
|
|
nvidia = {
|
|
powerManagement.enable = true;
|
|
modesetting.enable = true;
|
|
package = config.boot.kernelPackages.nvidiaPackages.stable;
|
|
};
|
|
opengl = {
|
|
enable = true;
|
|
extraPackages = with pkgs; [
|
|
nvidia-vaapi-driver
|
|
];
|
|
};
|
|
opentabletdriver = {
|
|
enable = true;
|
|
daemon.enable = true;
|
|
};
|
|
};
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
wget
|
|
dconf
|
|
polkit_gnome
|
|
libvirt
|
|
qemu_kvm
|
|
pinentry-gtk2
|
|
jdk17
|
|
];
|
|
}
|