2024-07-03 07:15:39 +01:00
|
|
|
{
|
|
|
|
config,
|
2024-07-07 08:47:50 +01:00
|
|
|
lib,
|
2024-07-03 07:15:39 +01:00
|
|
|
pkgs,
|
2024-07-09 08:22:24 +01:00
|
|
|
accentColourName,
|
2024-07-03 07:15:39 +01:00
|
|
|
...
|
|
|
|
}: {
|
2024-07-08 08:58:32 +01:00
|
|
|
home = {
|
|
|
|
pointerCursor = let
|
|
|
|
name =
|
|
|
|
if config.scheme.variant == "light"
|
|
|
|
then "volantes_cursors"
|
|
|
|
else "volantes_light_cursors";
|
|
|
|
in {
|
|
|
|
inherit name;
|
|
|
|
package = pkgs.volantes-cursors;
|
|
|
|
size = 32;
|
|
|
|
gtk.enable = true;
|
|
|
|
x11 = {
|
|
|
|
enable = true;
|
|
|
|
defaultCursor = name;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
packages = with pkgs; [
|
|
|
|
libreoffice-fresh
|
|
|
|
inkscape
|
|
|
|
webcord
|
|
|
|
teams-for-linux
|
|
|
|
];
|
|
|
|
};
|
2024-07-10 08:27:17 +01:00
|
|
|
services.syncthing.enable = true;
|
2024-07-03 07:15:39 +01:00
|
|
|
programs.mpv.enable = true;
|
2024-07-09 07:57:36 +01:00
|
|
|
gtk = let
|
2024-07-09 08:22:24 +01:00
|
|
|
extraCss = import ./base16/gtk.nix {
|
|
|
|
inherit (config) scheme;
|
|
|
|
inherit accentColourName;
|
|
|
|
};
|
2024-07-09 13:07:23 +01:00
|
|
|
toCapital = string:
|
|
|
|
with lib; let
|
|
|
|
chars = let
|
|
|
|
lc = strings.splitString "" string;
|
|
|
|
in (lists.sublist 1 (lists.length lc - 2) lc);
|
|
|
|
in (
|
|
|
|
strings.concatStringsSep "" (
|
|
|
|
(lists.singleton (strings.toUpper (lists.elemAt chars 0)))
|
|
|
|
++ (lists.sublist 1 (lists.length chars) chars)
|
|
|
|
)
|
|
|
|
);
|
2024-07-09 07:57:36 +01:00
|
|
|
in {
|
2024-07-07 08:47:50 +01:00
|
|
|
enable = true;
|
2024-07-09 07:57:36 +01:00
|
|
|
gtk3 = {inherit extraCss;};
|
|
|
|
gtk4 = {inherit extraCss;};
|
2024-07-10 15:19:45 +01:00
|
|
|
theme = {
|
|
|
|
package = pkgs.materia-theme;
|
|
|
|
name = "Materia-${config.scheme.variant}";
|
2024-07-09 08:22:24 +01:00
|
|
|
};
|
2024-07-09 13:07:23 +01:00
|
|
|
iconTheme = let
|
2024-07-10 15:19:45 +01:00
|
|
|
color = "violet";
|
2024-07-09 13:07:23 +01:00
|
|
|
in {
|
|
|
|
package = pkgs.papirus-icon-theme.override {inherit color;};
|
|
|
|
name = "Papirus-${toCapital config.scheme.variant}";
|
2024-07-07 08:47:50 +01:00
|
|
|
};
|
|
|
|
};
|
2024-07-03 07:15:39 +01:00
|
|
|
xdg = {
|
|
|
|
mime.enable = true;
|
|
|
|
mimeApps = let
|
|
|
|
defaultApplications = import ./mimeapps.nix;
|
|
|
|
in {
|
|
|
|
enable = true;
|
|
|
|
inherit defaultApplications;
|
2024-07-07 08:47:50 +01:00
|
|
|
associations = {
|
|
|
|
added = defaultApplications;
|
|
|
|
removed = {
|
|
|
|
"x-scheme-handler/zoomus" = config.xdg.mimeApps.defaultApplications."x-scheme-handler/http";
|
|
|
|
};
|
|
|
|
};
|
2024-07-03 07:15:39 +01:00
|
|
|
};
|
|
|
|
userDirs = {
|
|
|
|
enable = true;
|
|
|
|
createDirectories = true;
|
|
|
|
extraConfig = {
|
|
|
|
XDG_PROJECTS_DIR = "${config.home.homeDirectory}/Projects";
|
|
|
|
};
|
|
|
|
};
|
2024-07-05 10:49:32 +01:00
|
|
|
configFile."teams-for-linux/config.json".text = builtins.toJSON {
|
|
|
|
awayOnSystemIdle = true;
|
|
|
|
closeAppOnCross = true;
|
|
|
|
followSystemTheme = true;
|
2024-07-07 08:47:50 +01:00
|
|
|
electronCLIFlags = lib.mkIf config.wayland.windowManager.sway.enable [["ozone-platform" "wayland"]];
|
2024-07-05 10:49:32 +01:00
|
|
|
notificationMethod = "electron";
|
|
|
|
optInTeamsV2 = true;
|
|
|
|
spellCheckerLanguages = ["en_GB"];
|
|
|
|
};
|
2024-07-03 07:15:39 +01:00
|
|
|
};
|
2024-07-07 08:47:50 +01:00
|
|
|
xresources.properties = with config.scheme.withHashtag; {
|
|
|
|
"*background" = base00;
|
|
|
|
"*foreground" = base05;
|
|
|
|
"*color0" = base00;
|
|
|
|
"*color1" = red;
|
|
|
|
"*color2" = green;
|
|
|
|
"*color3" = yellow;
|
|
|
|
"*color4" = blue;
|
|
|
|
"*color5" = magenta;
|
|
|
|
"*color6" = cyan;
|
|
|
|
"*color7" = base04;
|
|
|
|
"*color8" = base01;
|
|
|
|
"*color9" = red;
|
|
|
|
"*color10" = green;
|
|
|
|
"*color11" = yellow;
|
|
|
|
"*color12" = blue;
|
|
|
|
"*color13" = magenta;
|
|
|
|
"*color14" = cyan;
|
|
|
|
"*color15" = base05;
|
|
|
|
};
|
2024-07-03 07:15:39 +01:00
|
|
|
}
|