2024-01-30 14:21:50 +00:00
|
|
|
{
|
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";
|
|
|
|
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
|
2024-04-12 17:56:13 +01:00
|
|
|
swaybg
|
2024-04-11 22:38:26 +01:00
|
|
|
swayimg
|
|
|
|
swaylock-effects
|
|
|
|
pamixer
|
|
|
|
pavucontrol
|
|
|
|
playerctl
|
|
|
|
brightnessctl
|
|
|
|
mpv
|
|
|
|
xarchiver
|
|
|
|
libreoffice-fresh
|
|
|
|
inkscape
|
|
|
|
signal-desktop
|
|
|
|
nomachine-client
|
|
|
|
];
|
|
|
|
};
|
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;
|
|
|
|
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-04-11 22:38:26 +01:00
|
|
|
};
|
|
|
|
gtk.iconCache.enable = true;
|
|
|
|
qt = {
|
|
|
|
enable = true;
|
|
|
|
platformTheme = "gtk2";
|
|
|
|
style = "gtk2";
|
|
|
|
};
|
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-05-11 15:41:19 +01:00
|
|
|
settings = let
|
|
|
|
command = "sway";
|
|
|
|
in {
|
|
|
|
initial_session = {inherit command;};
|
|
|
|
default_session = {inherit command;};
|
|
|
|
};
|
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-04-11 22:38:26 +01:00
|
|
|
xdg = {
|
2024-04-12 17:56:13 +01:00
|
|
|
portal = {
|
|
|
|
enable = true;
|
|
|
|
config.common.default = "*"; # TODO change for xdg-desktop-portal > 1.17 changes
|
|
|
|
extraPortals = [pkgs.xdg-desktop-portal-gtk];
|
|
|
|
};
|
2024-04-11 22:38:26 +01:00
|
|
|
mime = let
|
|
|
|
emacs = ["emacsclient.desktop" "emacs.desktop"];
|
2024-04-27 08:10:11 +01:00
|
|
|
browser = ["firefox.desktop" "nyxt.desktop"];
|
2024-04-11 22:38:26 +01:00
|
|
|
applications = {
|
|
|
|
"inode/directory" = ["thunar.desktop"];
|
|
|
|
"inode/symlink" = ["thunar.desktop"];
|
|
|
|
|
|
|
|
"image/jpeg" = ["swayimg.desktop"];
|
|
|
|
"image/png" = ["swayimg.desktop"];
|
|
|
|
"video/mp4" = ["mpv.desktop"];
|
|
|
|
|
|
|
|
"text/plain" = emacs;
|
|
|
|
"text/richtext" = emacs;
|
|
|
|
"text/org" = emacs;
|
|
|
|
"text/markdown" = emacs;
|
|
|
|
"text/rust" = emacs;
|
|
|
|
"text/csv" = emacs;
|
|
|
|
"text/html" = emacs;
|
|
|
|
"text/css" = emacs;
|
|
|
|
"text/tab-separated-values" = emacs;
|
|
|
|
|
|
|
|
"text/x-emacs-lisp" = emacs;
|
|
|
|
"text/x-fortran" = emacs;
|
|
|
|
"text/x-idl" = emacs;
|
|
|
|
"text/x-log" = emacs;
|
|
|
|
"text/x-lua" = emacs;
|
|
|
|
"text/x-makefile" = emacs;
|
|
|
|
"text/x-python" = emacs;
|
|
|
|
"text/x-python3" = emacs;
|
|
|
|
"text/x-readme" = emacs;
|
|
|
|
"text/x-scheme" = emacs;
|
|
|
|
"text/x-tex" = emacs;
|
|
|
|
"text/x-texinfo" = emacs;
|
|
|
|
|
|
|
|
"application/json" = emacs;
|
|
|
|
"application/toml" = emacs;
|
|
|
|
"application/yaml" = emacs;
|
|
|
|
"application/xml" = emacs;
|
|
|
|
"application/rss+xml" = emacs;
|
|
|
|
"application/xhtml+xml" = emacs;
|
|
|
|
"application/oxps" = emacs;
|
|
|
|
"application/x-shellscript" = emacs;
|
|
|
|
|
2024-05-13 15:39:26 +01:00
|
|
|
"application/pdf" = emacs;
|
|
|
|
"application/epub+zip" = emacs;
|
2024-04-11 22:38:26 +01:00
|
|
|
"application/msword" = ["writer.desktop"];
|
|
|
|
"application/zip" = ["xarchiver.desktop"];
|
|
|
|
|
|
|
|
"application/x-extension-htm" = browser;
|
|
|
|
"application/x-extension-html" = browser;
|
|
|
|
"application/x-extension-shtml" = browser;
|
|
|
|
"application/x-extension-xhtml" = browser;
|
|
|
|
"application/x-extension-xht" = browser;
|
|
|
|
"application/x-mozilla-bookmarks" = browser;
|
|
|
|
|
|
|
|
"x-scheme-handler/http" = browser;
|
|
|
|
"x-scheme-handler/https" = browser;
|
|
|
|
"x-scheme-handler/about" = browser;
|
|
|
|
"x-scheme-handler/chrome" = browser;
|
|
|
|
"x-scheme-handler/webcal" = browser;
|
|
|
|
"x-scheme-handler/unknown" = emacs;
|
|
|
|
|
|
|
|
"x-scheme-handler/ms-word" = ["writer.desktop"];
|
|
|
|
"x-scheme-handler/ms-powerpoint" = ["impress.desktop"];
|
|
|
|
"x-scheme-handler/ms-excel" = ["calc.desktop"];
|
2024-04-24 14:02:20 +01:00
|
|
|
"x-scheme-handler/msteams" = ["teams-for-linux.desktop"];
|
2024-04-11 22:38:26 +01:00
|
|
|
};
|
|
|
|
in {
|
|
|
|
enable = true;
|
|
|
|
defaultApplications = applications;
|
|
|
|
addedAssociations = applications;
|
|
|
|
removedAssociations = {"x-scheme-handler/zoomus" = browser;};
|
|
|
|
};
|
2023-11-09 11:48:40 +00:00
|
|
|
};
|
2023-07-13 12:41:00 +01:00
|
|
|
}
|