sisko/home: Configure hypr* in nix

This commit is contained in:
2026-06-05 23:55:23 +02:00
parent 1fc54a31cd
commit fc9e1572d1
10 changed files with 931 additions and 97 deletions
+55 -9
View File
@@ -1,14 +1,13 @@
{ config, pkgs, lib, ... }:
{
imports =
[
../../base.nix
../../common/metrics-exporters.nix
./hardware-configuration.nix
./desktop.nix
imports = [
../../base.nix
../../common/metrics-exporters.nix
./hardware-configuration.nix
];
# Networking
networking = {
hostName = "sisko";
# networkmanager.enable = true;
@@ -23,11 +22,25 @@
};
hostId = "b716d781";
};
hardware.bluetooth.enable = true;
# Video
hardware.graphics = {
enable = true;
enable32Bit = true;
};
hardware.amdgpu.opencl.enable = true;
# Audio
services.pipewire = {
enable = true;
alsa.enable = true;
pulse.enable = true;
jack.enable = true;
};
# Other hardware / devices
hardware.rtl-sdr.enable = true;
sops.defaultSopsFile = ../../secrets/sisko/sisko.yaml;
environment.variables = { EDITOR = "vim"; };
users.users.felixalb.extraGroups = [
"dialout"
@@ -36,6 +49,32 @@
"plugdev"
];
# Desktop
programs.hyprland = {
# See configuration (through home-manager) in home/hypr
enable = true;
withUWSM = true;
};
services.displayManager.ly.enable = true;
services.xserver.enable = true;
services.xserver.desktopManager.xfce.enable = true;
fonts = {
fontDir.enable = true;
packages = with pkgs; [
fira-code
font-awesome
hack-font
nerd-fonts.hack
noto-fonts
noto-fonts-cjk-sans
noto-fonts-color-emoji
];
};
# Programs
# TODO - Move to Home-Manager
programs = {
alvr = {
enable = true;
@@ -58,7 +97,12 @@
virt-manager.enable = true;
};
environment.variables = {
SSH_AUTH_SOCK = "/run/user/${toString config.users.users.felixalb.uid}/keyring/ssh";
EDITOR = "vim";
};
# Virtualization
virtualisation = {
libvirtd.enable = true;
spiceUSBRedirection.enable = true;
@@ -71,6 +115,7 @@
virtualisation.docker.enable = true;
virtualisation.oci-containers.backend = "docker";
# Nix / meta
nixpkgs.config = {
allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
"discord"
@@ -85,6 +130,7 @@
rocmSupport = true;
};
sops.defaultSopsFile = ../../secrets/sisko/sisko.yaml;
services.fwupd.enable = true;
system.stateVersion = "24.11";
}