nixos/system/desktop.nix

76 lines
1.6 KiB
Nix
Raw Normal View History

{ pkgs, username, ... }:
2024-07-30 15:06:34 +01:00
{
home-manager.users.${username}.imports = [ ./home/desktop.nix ];
nixpkgs.config.chromium.commandLineArgs = "--enable-features=UseOzonePlatform --ozone-platform=wayland";
system.autoUpgrade.operation = "boot";
hardware.bluetooth.enable = true;
environment = {
sessionVariables = {
NIXOS_OZONE_WL = "1";
QT_QPA_PLATFORM = "wayland";
2024-09-11 15:19:43 +01:00
GRIM_DEFAULT_DIR = "$HOME/Pictures/Screenshots";
};
systemPackages = with pkgs; [
libsecret
libnotify
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-11 15:19:43 +01:00
sway.enable = true;
xwayland.enable = true;
};
gtk.iconCache.enable = true;
services = {
2024-09-11 15:19:43 +01:00
gnome.gnome-keyring.enable = true;
flatpak.enable = true;
printing.enable = true;
pipewire = {
enable = true;
pulse.enable = true;
alsa = {
enable = true;
support32Bit = true;
};
};
2024-09-11 15:19:43 +01:00
greetd = {
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;
};
};
};
xserver = {
enable = true;
xkb = {
layout = "gb";
variant = "";
options = "ctrl:nocaps";
};
};
};
}