2024-01-30 14:21:50 +00:00
|
|
|
{
|
2024-07-08 08:58:32 +01:00
|
|
|
config,
|
2024-04-11 22:38:26 +01:00
|
|
|
lib,
|
2024-01-30 14:21:50 +00:00
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}: {
|
2024-05-12 10:46:25 +01:00
|
|
|
imports = [./default.nix];
|
2024-04-11 22:38:26 +01:00
|
|
|
nixpkgs.config.chromium.commandLineArgs = "--enable-features=UseOzonePlatform --ozone-platform=wayland";
|
2024-06-07 06:17:37 +01:00
|
|
|
system.autoUpgrade.operation = "boot";
|
2024-06-19 13:55:24 +01:00
|
|
|
hardware.bluetooth.enable = true;
|
2024-04-11 22:38:26 +01:00
|
|
|
environment = {
|
2024-07-07 08:47:50 +01:00
|
|
|
sessionVariables = {
|
|
|
|
NIXOS_OZONE_WL = "1";
|
|
|
|
GRIM_DEFAULT_DIR = "$HOME/Pictures/Grim";
|
2024-07-08 08:58:32 +01:00
|
|
|
QT_QPA_PLATFORM = lib.mkIf config.programs.sway.enable "wayland";
|
2024-07-07 08:47:50 +01:00
|
|
|
};
|
2024-04-11 22:38:26 +01:00
|
|
|
systemPackages = with pkgs; [
|
|
|
|
xdg-utils
|
2024-07-07 08:47:50 +01:00
|
|
|
wtype
|
|
|
|
wl-clipboard
|
2024-07-08 06:35:24 +01:00
|
|
|
libsecret
|
2024-07-07 08:47:50 +01:00
|
|
|
libnotify
|
|
|
|
libcamera
|
|
|
|
glib
|
|
|
|
gsettings-desktop-schemas
|
2024-04-11 22:38:26 +01:00
|
|
|
hunspell
|
|
|
|
hunspellDicts.en_GB-large
|
2024-07-07 08:47:50 +01:00
|
|
|
pamixer
|
|
|
|
pavucontrol
|
|
|
|
playerctl
|
|
|
|
brightnessctl
|
2024-04-11 22:38:26 +01:00
|
|
|
];
|
|
|
|
};
|
2024-07-07 08:47:50 +01:00
|
|
|
security = {
|
|
|
|
polkit.enable = true;
|
2024-07-08 08:58:32 +01:00
|
|
|
pam = {
|
|
|
|
services.swaylock = {};
|
|
|
|
loginLimits = [
|
|
|
|
{
|
|
|
|
domain = "@users";
|
|
|
|
item = "rtprio";
|
|
|
|
type = "-";
|
|
|
|
value = 1;
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
2024-07-07 08:47:50 +01:00
|
|
|
};
|
2024-04-11 22:38:26 +01:00
|
|
|
programs = {
|
|
|
|
dconf.enable = true;
|
2024-07-07 08:47:50 +01:00
|
|
|
light.enable = true;
|
2024-07-09 07:18:52 +01:00
|
|
|
nm-applet.enable = true;
|
2024-04-11 22:38:26 +01:00
|
|
|
noisetorch.enable = true;
|
2024-06-16 11:05:24 +01:00
|
|
|
kdeconnect.enable = true;
|
2024-07-07 08:47:50 +01:00
|
|
|
file-roller.enable = true;
|
|
|
|
thunar = {
|
|
|
|
enable = true;
|
2024-07-08 08:58:32 +01:00
|
|
|
plugins = with pkgs.xfce; [
|
|
|
|
thunar-archive-plugin
|
|
|
|
thunar-volman
|
|
|
|
];
|
2024-07-07 08:47:50 +01:00
|
|
|
};
|
|
|
|
sway = {
|
|
|
|
enable = true;
|
|
|
|
package =
|
|
|
|
pkgs.swayfx.overrideAttrs
|
|
|
|
(old: {passthru.providedSessions = ["sway"];});
|
2024-07-09 13:07:23 +01:00
|
|
|
extraPackages = [];
|
2024-07-07 08:47:50 +01:00
|
|
|
wrapperFeatures.gtk = true;
|
2024-07-09 13:07:23 +01:00
|
|
|
xwayland.enable = true;
|
2024-07-07 08:47:50 +01:00
|
|
|
};
|
2024-05-27 19:18:30 +01:00
|
|
|
gamescope = {
|
|
|
|
enable = true;
|
|
|
|
capSysNice = true;
|
|
|
|
};
|
2024-07-07 08:47:50 +01:00
|
|
|
xwayland.enable = true;
|
|
|
|
};
|
|
|
|
gtk.iconCache.enable = true;
|
|
|
|
qt = {
|
|
|
|
enable = true;
|
2024-07-09 13:07:23 +01:00
|
|
|
style = "gtk2";
|
|
|
|
platformTheme = "gtk2";
|
2024-04-11 22:38:26 +01:00
|
|
|
};
|
2023-07-13 12:41:00 +01:00
|
|
|
services = {
|
2024-07-07 08:47:50 +01:00
|
|
|
dbus.packages = with pkgs; [gcr];
|
2024-07-08 06:35:24 +01:00
|
|
|
gnome.gnome-keyring.enable = true;
|
2024-05-10 06:08:13 +01:00
|
|
|
flatpak.enable = true;
|
2024-07-07 08:47:50 +01:00
|
|
|
blueman.enable = true;
|
2024-06-17 08:46:29 +01:00
|
|
|
printing.enable = true;
|
2024-07-07 08:47:50 +01:00
|
|
|
accounts-daemon.enable = true;
|
|
|
|
tumbler.enable = true;
|
|
|
|
udisks2.enable = true;
|
|
|
|
gvfs = {
|
|
|
|
enable = true;
|
|
|
|
package = lib.mkForce pkgs.gnome3.gvfs;
|
|
|
|
};
|
2024-06-19 13:55:24 +01:00
|
|
|
pipewire = {
|
|
|
|
enable = true;
|
|
|
|
pulse.enable = true;
|
|
|
|
alsa = {
|
|
|
|
enable = true;
|
|
|
|
support32Bit = true;
|
|
|
|
};
|
|
|
|
};
|
2024-07-07 08:47:50 +01:00
|
|
|
greetd = {
|
2024-06-17 08:46:29 +01:00
|
|
|
enable = true;
|
2024-07-07 08:47:50 +01:00
|
|
|
settings = let
|
|
|
|
command = "sway";
|
|
|
|
in {
|
|
|
|
initial_session = {inherit command;};
|
|
|
|
default_session = {inherit command;};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
xserver = {
|
|
|
|
enable = false;
|
2024-04-11 22:38:26 +01:00
|
|
|
xkb = {
|
|
|
|
layout = "gb";
|
|
|
|
variant = "";
|
|
|
|
options = "ctrl:nocaps";
|
|
|
|
};
|
2023-07-16 17:35:36 +01:00
|
|
|
};
|
2024-07-07 08:47:50 +01:00
|
|
|
};
|
|
|
|
xdg.portal = {
|
|
|
|
enable = true;
|
|
|
|
config.common.default = "*"; # TODO change for xdg-desktop-portal > 1.17 changes
|
|
|
|
extraPortals = [pkgs.xdg-desktop-portal-gtk];
|
2023-11-09 11:48:40 +00:00
|
|
|
};
|
2023-07-13 12:41:00 +01:00
|
|
|
}
|