Create graphical profile

This commit is contained in:
Christopher Mühl 2026-01-05 12:42:30 +01:00
parent 0ccb9c51b2
commit e140f079db
No known key found for this signature in database
GPG key ID: 925AC7D69955293F
8 changed files with 99 additions and 77 deletions

View file

@ -13,10 +13,13 @@
./hardware.nix
./disko.nix
./metrics.nix
./musnix.nix
];
bosun = {
profiles = {
graphical.enable = true;
};
#quirks = ["avahi" "docker" "nix-ld"];
key = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPjqieS4GkYAa1WRYZpxjgYsj7VGZ9U+rTFCkX8M0umD";
};

View file

@ -1,12 +0,0 @@
{inputs, ...}: {
imports = [
inputs.musnix.nixosModules.default
];
musnix = {
enable = true;
rtcqs.enable = true;
};
users.users.toph.extraGroups = ["audio"];
}

View file

@ -1,6 +1,7 @@
{
imports = [
./services
./profiles
./system.nix
./users.nix
];

View file

@ -0,0 +1,5 @@
{...}: {
imports = [
./graphical
];
}

View file

@ -0,0 +1,27 @@
{
inputs,
lib,
...
}: let
inherit (lib) mkForce mkDefault;
in {
imports = [
inputs.musnix.nixosModules.default
];
config = {
musnix = {
enable = mkDefault true;
rtcqs.enable = true;
};
users.users.toph.extraGroups = ["audio"];
pipewire = {
enable = mkForce true;
alsa.enable = true;
jack.enable = true;
pulse.enable = true;
};
};
}

View file

@ -0,0 +1,12 @@
{
lib,
config,
...
}: let
inherit (lib) mkIf;
in {
imports = mkIf config.bosun.profiles.graphical.enabled [
./wm.nix
./audio.nix
];
}

View file

@ -0,0 +1,50 @@
{
inputs,
pkgs,
...
}: {
imports = [
inputs.niri.nixosModules.default
];
config = {
environment.systemPackages = with pkgs; [
wayland-utils
wl-clipboard
libsForQt5.qtstyleplugin-kvantum
xwayland-satellite
nautilus
];
programs.niri = {
enable = true;
package = pkgs.niri; # TODO: Use input niri pkgs/overlay!
};
services = {
xserver.enable = true;
displayManager = {
defaultSession = "niri";
sddm = {
enable = true;
wayland.enable = true;
};
};
xdg.portal = {
enable = true;
xdgOpenUsePortal = true;
config.common.default = "gtk";
extraPortals = with pkgs; [
xdg-desktop-portal-gnome
xdg-desktop-portal-gtk
];
};
security.polkit.enable = true;
};
};
}

View file

@ -1,64 +0,0 @@
{
inputs,
pkgs,
config,
lib,
...
}:
with lib; let
cfg = config.elements.wm;
in {
options.elements = {
wm = {
enable = mkEnableOption "Enable window manager configuration";
};
};
config = mkIf cfg.enable {
environment.systemPackages = with pkgs; [
# kdePackages.discover
# kdePackages.kclock
# kdePackages.kcharselect
# kdePackages.kolourpaint
# kdePackages.ksystemlog
wayland-utils
wl-clipboard
libsForQt5.qtstyleplugin-kvantum
xwayland-satellite
nautilus # xdg-gnome needs this but we don't use gnome???
];
programs.niri = {
enable = true;
package = pkgs.niri;
};
# niri-flake.cache.enable = false;
services.xserver = {
enable = true;
};
# TODO: Switch this to Niri!
services.desktopManager.plasma6.enable = true;
services.displayManager = {
defaultSession = "niri";
sddm = {
enable = true;
wayland.enable = true;
};
};
xdg.portal = with pkgs; {
enable = true;
xdgOpenUsePortal = true;
extraPortals = [xdg-desktop-portal-gnome xdg-desktop-portal-gtk];
#E configPackages = [pkgs.xdg-desktop-portal-gtk];
config.common.default = "gtk";
};
security.polkit.enable = true;
};
}