forest/hosts/loona/configuration.nix

92 lines
2.1 KiB
Nix
Raw Permalink Normal View History

2024-06-28 15:09:05 +00:00
{ config, modulesPath, pkgs, ... }: {
imports = [
../../common/generic.nix
../../common/generic-desktop.nix
../../common/generic-uefi-zfs.nix
2024-06-29 01:05:09 +00:00
../../common/tailscale.nix
2024-06-28 15:09:05 +00:00
../../common/tpm.nix
2024-07-13 23:33:27 +00:00
../../roles/libvirt.nix
2024-08-14 19:39:37 +00:00
../../roles/niri.nix
2024-06-28 15:09:05 +00:00
../../roles/podman.nix
2024-06-28 15:13:59 +00:00
./hardware-configuration.nix
2024-06-28 15:09:05 +00:00
];
networking.hostName = "loona";
2024-06-28 15:13:59 +00:00
networking.hostId = "df9469a3";
2024-06-28 15:09:05 +00:00
networking.firewall.enable = false;
2024-10-24 11:55:43 +00:00
#boot.kernelPackages = pkgs.linuxPackages_6_8;
2024-06-28 15:09:05 +00:00
hardware.pulseaudio.enable = false;
security.rtkit.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
jack.enable = true;
pulse.enable = true;
};
security.pam.services = {
kde.u2fAuth = true;
sddm.u2fAuth = true;
doas.u2fAuth = true;
};
services = {
xserver = {
enable = true;
xkb.layout = "gb";
};
2024-07-23 07:05:56 +00:00
displayManager.sddm = {
enable = true;
theme = "catppuccin-mocha";
};
2024-06-28 15:09:05 +00:00
desktopManager.plasma6.enable = true;
};
services.printing = {
enable = true;
drivers = with pkgs; [
hplip
];
};
hardware.bluetooth.enable = true;
hardware.rtl-sdr.enable = true;
users.users.ash.extraGroups = ["plugdev"];
2024-07-23 07:06:32 +00:00
hardware.usb-modeswitch.enable = true;
2024-08-14 19:39:37 +00:00
services.udev.packages = with pkgs; [
platformio-core
openocd
];
2024-09-11 01:39:19 +00:00
services.usbmuxd.enable = true;
2024-06-28 15:09:05 +00:00
programs.steam.enable = true;
nixpkgs.config.allowUnfree = true;
2024-07-13 23:33:27 +00:00
nixpkgs.config.packageOverrides = pkgs: {
intel-vaapi-driver = pkgs.intel-vaapi-driver.override { enableHybridCodec = true; };
};
hardware.graphics = {
enable32Bit = true;
extraPackages = with pkgs; [
intel-media-driver # LIBVA_DRIVER_NAME=iHD
intel-vaapi-driver # LIBVA_DRIVER_NAME=i965 (older but works better for Firefox/Chromium)
libvdpau-va-gl
];
};
environment.sessionVariables = { LIBVA_DRIVER_NAME = "iHD"; };
2024-07-23 07:05:56 +00:00
environment.systemPackages = with pkgs; [
(catppuccin-sddm.override {
flavor = "mocha";
})
];
2024-07-13 23:33:27 +00:00
boot.extraModulePackages = with config.boot.kernelPackages; [ xpadneo ];
2024-06-28 15:09:05 +00:00
virtualisation.waydroid.enable = true;
system.stateVersion = "22.11";
}