2024-08-30 12:57:02 +01:00
|
|
|
{ pkgs, username, ... }:
|
2024-07-30 15:06:34 +01:00
|
|
|
{
|
2024-08-30 12:57:02 +01:00
|
|
|
home-manager.users.${username}.imports = [ ./home/desktop.nix ];
|
2024-07-10 08:27:17 +01:00
|
|
|
nixpkgs.config.chromium.commandLineArgs = "--enable-features=UseOzonePlatform --ozone-platform=wayland";
|
|
|
|
hardware.bluetooth.enable = true;
|
|
|
|
environment = {
|
2024-08-30 12:57:02 +01:00
|
|
|
sessionVariables = {
|
|
|
|
NIXOS_OZONE_WL = "1";
|
|
|
|
QT_QPA_PLATFORM = "wayland";
|
2024-09-11 15:19:43 +01:00
|
|
|
GRIM_DEFAULT_DIR = "$HOME/Pictures/Screenshots";
|
2024-08-30 12:57:02 +01:00
|
|
|
};
|
2024-07-10 08:27:17 +01:00
|
|
|
systemPackages = with pkgs; [
|
2024-07-10 08:36:28 +01:00
|
|
|
libsecret
|
2024-07-19 08:52:17 +01:00
|
|
|
libnotify
|
2024-07-10 08:27:17 +01:00
|
|
|
xdg-utils
|
|
|
|
hunspell
|
|
|
|
hunspellDicts.en_GB-large
|
|
|
|
];
|
|
|
|
};
|
|
|
|
security = {
|
|
|
|
polkit.enable = true;
|
|
|
|
pam.loginLimits = [
|
|
|
|
{
|
|
|
|
domain = "@users";
|
|
|
|
item = "rtprio";
|
|
|
|
type = "-";
|
|
|
|
value = 1;
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
|
|
|
programs = {
|
|
|
|
dconf.enable = true;
|
|
|
|
noisetorch.enable = true;
|
|
|
|
kdeconnect.enable = true;
|
2024-09-13 11:49:23 +01:00
|
|
|
file-roller.enable = true;
|
|
|
|
thunar = {
|
|
|
|
enable = true;
|
|
|
|
plugins = with pkgs.xfce; [
|
|
|
|
thunar-archive-plugin
|
|
|
|
thunar-volman
|
|
|
|
];
|
|
|
|
};
|
2024-09-11 15:19:43 +01:00
|
|
|
sway.enable = true;
|
2024-07-10 08:27:17 +01:00
|
|
|
xwayland.enable = true;
|
|
|
|
};
|
|
|
|
gtk.iconCache.enable = true;
|
|
|
|
services = {
|
2024-09-13 11:06:45 +01:00
|
|
|
dbus.packages = [ pkgs.gcr ];
|
2024-07-10 08:27:17 +01:00
|
|
|
flatpak.enable = true;
|
|
|
|
printing.enable = true;
|
2024-09-13 11:49:23 +01:00
|
|
|
tumbler.enable = true;
|
|
|
|
udisks2.enable = true;
|
|
|
|
gvfs = {
|
|
|
|
enable = true;
|
|
|
|
package = pkgs.gnome3.gvfs;
|
|
|
|
};
|
2024-07-10 08:27:17 +01:00
|
|
|
pipewire = {
|
|
|
|
enable = true;
|
|
|
|
pulse.enable = true;
|
|
|
|
alsa = {
|
|
|
|
enable = true;
|
|
|
|
support32Bit = true;
|
|
|
|
};
|
|
|
|
};
|
2024-09-11 15:19:43 +01:00
|
|
|
greetd = {
|
2024-08-30 12:57:02 +01:00
|
|
|
enable = true;
|
2024-09-11 15:19:43 +01:00
|
|
|
settings =
|
|
|
|
let
|
|
|
|
default_session.command = "sway";
|
|
|
|
in
|
|
|
|
{
|
|
|
|
inherit default_session;
|
|
|
|
initial_session = {
|
|
|
|
inherit (default_session) command;
|
|
|
|
user = username;
|
|
|
|
};
|
|
|
|
};
|
2024-08-30 12:57:02 +01:00
|
|
|
};
|
2024-07-10 08:27:17 +01:00
|
|
|
xserver = {
|
2024-08-05 14:49:37 +01:00
|
|
|
enable = true;
|
2024-07-10 08:27:17 +01:00
|
|
|
xkb = {
|
|
|
|
layout = "gb";
|
|
|
|
variant = "";
|
|
|
|
options = "ctrl:nocaps";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2024-09-13 11:49:23 +01:00
|
|
|
qt = {
|
|
|
|
enable = true;
|
|
|
|
style = "adwaita";
|
|
|
|
platformTheme = "gnome";
|
|
|
|
};
|
2024-09-12 07:40:06 +01:00
|
|
|
xdg.portal = {
|
|
|
|
enable = true;
|
|
|
|
config.common.default = "*"; # TODO change for xdg-desktop-portal > 1.17 changes
|
|
|
|
extraPortals = [ pkgs.xdg-desktop-portal-gtk ];
|
|
|
|
};
|
2024-07-10 08:27:17 +01:00
|
|
|
}
|