1
0
Fork 0
This commit is contained in:
Lukas Wurzinger 2025-07-01 19:02:19 +02:00
parent a026867c03
commit d1d7dd9c01
No known key found for this signature in database
22 changed files with 427 additions and 103 deletions

View file

@ -1,16 +0,0 @@
{
config,
lib,
pkgs,
...
}:
let
cfg = config.profiles.desktop;
in
{
config = lib.mkIf cfg.enable {
environment.systemPackages = [
pkgs.wl-clipboard
];
};
}

View file

@ -13,6 +13,14 @@ in
assertion = !config.profiles.server.enable;
message = "The desktop profile is not compatible with the server profile.";
}
{
assertion = config.profiles.headful.enable;
message = "The desktop profile depends on the headful profile.";
}
{
assertion = config.profiles.dynamic.enable;
message = "The desktop profile depends on the dynamic profile.";
}
];
};
}

View file

@ -1,48 +0,0 @@
{
config,
lib,
pkgs,
...
}:
let
cfg = config.profiles.desktop;
in
{
config = lib.mkIf cfg.enable {
fonts = {
enableDefaultPackages = true;
packages = [
pkgs.noto-fonts
pkgs.noto-fonts-extra
pkgs.noto-fonts-cjk-sans
pkgs.noto-fonts-cjk-serif
pkgs.noto-fonts-monochrome-emoji
pkgs.noto-fonts-color-emoji
pkgs.nerd-fonts.fira-code
];
fontconfig = {
enable = true;
defaultFonts = {
monospace = [
"FiraCode Nerd Font"
];
sansSerif = [
"Noto Sans"
];
serif = [
"Noto Serif"
];
emoji = [
"Noto Color Emoji"
"Noto Emoji"
];
};
};
# TODO
fontDir.enable = true;
};
};
}

View file

@ -1,22 +0,0 @@
{
config,
lib,
...
}:
let
cfg = config.profiles.desktop;
in
{
config = lib.mkIf cfg.enable {
hardware = {
bluetooth.enable = true;
steam-hardware.enable = true;
xone.enable = true;
xpadneo.enable = true;
opentabletdriver.enable = true;
gcadapter.enable = true;
graphics.enable = true;
enableAllFirmware = true;
};
};
}

View file

@ -1,13 +0,0 @@
{
config,
lib,
...
}:
let
cfg = config.profiles.desktop;
in
{
config = lib.mkIf cfg.enable {
location.provider = "geoclue2";
};
}

View file

@ -1,20 +0,0 @@
{
config,
lib,
...
}:
let
cfg = config.profiles.desktop;
in
{
config = lib.mkIf cfg.enable {
services.resolved.enable = true;
networking.networkmanager = {
enable = true;
dns = "systemd-resolved";
};
users.groups.networkmanager.members = config.users.normalUsers;
};
}

View file

@ -1,21 +0,0 @@
{
config,
lib,
...
}:
let
cfg = config.profiles.desktop;
in
{
config = lib.mkIf cfg.enable {
security.rtkit.enable = true;
services.pipewire = {
enable = true;
wireplumber.enable = true;
alsa.enable = true;
pulse.enable = true;
jack.enable = true;
};
};
}

View file

@ -1,16 +0,0 @@
{
config,
lib,
...
}:
let
cfg = config.profiles.desktop;
in
{
config = lib.mkIf cfg.enable {
environment.sessionVariables = {
NIXOS_OZONE_WL = "1";
SDL_VIDEODRIVER = "wayland";
};
};
}

View file

@ -1,13 +0,0 @@
{
config,
lib,
...
}:
let
cfg = config.profiles.desktop;
in
{
config = lib.mkIf cfg.enable {
xdg.portal.xdgOpenUsePortal = true;
};
}