2024-01-30 14:21:50 +00:00
|
|
|
{
|
2024-06-07 20:44:06 +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-04-11 22:38:26 +01:00
|
|
|
environment = {
|
|
|
|
sessionVariables = {
|
|
|
|
NIXOS_OZONE_WL = "1";
|
|
|
|
GRIM_DEFAULT_DIR = "$HOME/Pictures/Grim";
|
|
|
|
};
|
|
|
|
systemPackages = with pkgs; [
|
|
|
|
wtype
|
|
|
|
wl-clipboard
|
|
|
|
xdg-utils
|
|
|
|
libnotify
|
|
|
|
libcamera
|
|
|
|
glib
|
|
|
|
gsettings-desktop-schemas
|
|
|
|
hunspell
|
|
|
|
hunspellDicts.en_GB-large
|
|
|
|
pamixer
|
|
|
|
pavucontrol
|
|
|
|
playerctl
|
|
|
|
brightnessctl
|
|
|
|
];
|
|
|
|
};
|
2024-01-12 22:06:16 +00:00
|
|
|
security = {
|
|
|
|
polkit.enable = true;
|
|
|
|
rtkit.enable = true;
|
2024-04-12 21:17:54 +01:00
|
|
|
pam = {
|
|
|
|
services.swaylock = {};
|
|
|
|
loginLimits = [
|
|
|
|
{
|
|
|
|
domain = "@users";
|
|
|
|
item = "rtprio";
|
|
|
|
type = "-";
|
|
|
|
value = 1;
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
2024-01-12 22:06:16 +00:00
|
|
|
};
|
2024-01-23 19:53:52 +00:00
|
|
|
sound.enable = false;
|
|
|
|
hardware.bluetooth.enable = true;
|
2024-04-11 22:38:26 +01:00
|
|
|
programs = {
|
|
|
|
dconf.enable = true;
|
|
|
|
light.enable = true;
|
|
|
|
noisetorch.enable = true;
|
2024-06-16 11:05:24 +01:00
|
|
|
kdeconnect.enable = true;
|
2024-05-27 12:00:12 +01:00
|
|
|
file-roller.enable = true;
|
2024-04-11 22:38:26 +01:00
|
|
|
thunar = {
|
|
|
|
enable = true;
|
|
|
|
plugins = with pkgs.xfce; [thunar-archive-plugin thunar-volman];
|
|
|
|
};
|
2024-05-11 15:41:19 +01:00
|
|
|
sway = {
|
|
|
|
enable = true;
|
|
|
|
package =
|
|
|
|
pkgs.swayfx.overrideAttrs
|
|
|
|
(old: {passthru.providedSessions = ["sway"];});
|
|
|
|
wrapperFeatures.gtk = true;
|
|
|
|
};
|
2024-05-27 19:18:30 +01:00
|
|
|
gamescope = {
|
|
|
|
enable = true;
|
|
|
|
capSysNice = true;
|
|
|
|
};
|
2024-05-21 19:24:24 +01:00
|
|
|
xwayland.enable = true;
|
2024-04-11 22:38:26 +01:00
|
|
|
};
|
|
|
|
gtk.iconCache.enable = true;
|
|
|
|
qt = {
|
|
|
|
enable = true;
|
2024-06-16 11:05:24 +01:00
|
|
|
platformTheme = "gnome";
|
|
|
|
style = "adwaita";
|
2024-04-11 22:38:26 +01:00
|
|
|
};
|
2023-07-13 12:41:00 +01:00
|
|
|
services = {
|
2024-05-10 06:08:13 +01:00
|
|
|
flatpak.enable = true;
|
2024-04-11 22:38:26 +01:00
|
|
|
blueman.enable = true;
|
|
|
|
gvfs = {
|
|
|
|
enable = true;
|
|
|
|
package = lib.mkForce pkgs.gnome3.gvfs;
|
|
|
|
};
|
2023-11-04 15:51:05 +00:00
|
|
|
accounts-daemon.enable = true;
|
2024-01-30 14:21:50 +00:00
|
|
|
dbus.packages = with pkgs; [gcr];
|
2024-01-03 15:40:21 +00:00
|
|
|
greetd = {
|
|
|
|
enable = true;
|
2024-06-15 05:56:43 +01:00
|
|
|
vt = 7;
|
2024-06-07 20:44:06 +01:00
|
|
|
settings = {
|
|
|
|
default_session.command = ''
|
|
|
|
${pkgs.greetd.tuigreet}/bin/tuigreet --time\
|
|
|
|
--remember\
|
2024-06-09 11:23:33 +01:00
|
|
|
--remember-session\
|
2024-06-07 20:44:06 +01:00
|
|
|
--user-menu\
|
|
|
|
--asterisks\
|
|
|
|
--window-padding 10
|
|
|
|
'';
|
2024-05-11 15:41:19 +01:00
|
|
|
};
|
2024-01-03 15:40:21 +00:00
|
|
|
};
|
2023-07-15 10:33:52 +01:00
|
|
|
pipewire = {
|
|
|
|
enable = true;
|
2024-01-23 19:53:52 +00:00
|
|
|
alsa = {
|
|
|
|
enable = true;
|
|
|
|
support32Bit = true;
|
|
|
|
};
|
|
|
|
audio.enable = true;
|
|
|
|
jack.enable = true;
|
2023-07-15 10:33:52 +01:00
|
|
|
pulse.enable = true;
|
2024-01-23 19:53:52 +00:00
|
|
|
wireplumber.enable = true;
|
2023-07-15 10:33:52 +01:00
|
|
|
};
|
2024-04-11 22:38:26 +01:00
|
|
|
tumbler.enable = true;
|
|
|
|
udisks2.enable = true;
|
|
|
|
xserver = {
|
|
|
|
enable = false;
|
|
|
|
xkb = {
|
|
|
|
layout = "gb";
|
|
|
|
variant = "";
|
|
|
|
options = "ctrl:nocaps";
|
|
|
|
};
|
2023-07-16 17:35:36 +01:00
|
|
|
};
|
2023-07-13 12:41:00 +01:00
|
|
|
};
|
2024-06-07 09:32:33 +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
|
|
|
}
|