kde with teams

This commit is contained in:
atagen 2024-02-21 16:16:03 +11:00
parent 39a732d893
commit deeda4b05a
7 changed files with 349 additions and 293 deletions

View file

@ -13,15 +13,13 @@ in {
imports = [
./programs/helix.nix
./programs/wlogout.nix
./programs/fuzzel.nix
./programs/qtile.nix
# ./programs/swayosd.nix
./programs/swaync.nix
./programs/firefox.nix
./programs/kitty.nix
./programs/zsh.nix
./util/ez.nix
./util/firefox-webapp.nix
inputs.plasma-manager.homeManagerModules.plasma-manager # TODO: set up manually, use rc2nix to convert
inputs.nix-flatpak.homeManagerModules.nix-flatpak
];
home.packages = with pkgs;
@ -29,8 +27,6 @@ in {
thunderbird
strawberry
inkscape
(xfce.thunar.override {thunarPlugins = [xfce.thunar-archive-plugin xfce.thunar-volman xfce.thunar-media-tags-plugin];})
peazip
imv
@ -48,7 +44,6 @@ in {
slurp
libnotify
gtklock
playerctl
kooha
@ -56,7 +51,6 @@ in {
onlyoffice-bin
croc
logseq
xorg.xrdb
culr
@ -87,55 +81,29 @@ in {
enable = true;
};
services.avizo = {
enable = true;
settings = with pkgs.rice.palette; {
default = {
height = 120;
width = 300;
time = 1.0;
border-radius = 16;
fade-in = 0.5;
fade-out = 1.0;
padding = pkgs.rice.borders.gaps_in;
block-count = 16;
block-spacing = 4;
block-height = 4;
background = lib.strings.concatStrings ["rgba(" "${toString bright.black.r}" " ," "${toString bright.black.g}" " ," "${toString bright.black.b}" " , 1.0)"];
border-color = lib.strings.concatStrings ["rgba(" "${toString bright.yellow.r}" " ," "${toString bright.yellow.g}" " ," "${toString bright.yellow.b}" " , 1.0)"];
bar-fg-color = lib.strings.concatStrings ["rgba(" "${toString bright.yellow.r}" " ," "${toString bright.yellow.g}" " ," "${toString bright.yellow.b}" " , 1.0)"];
bar-bg-color = lib.strings.concatStrings ["rgba(" "${toString util.bg.r}" " ," "${toString util.bg.g}" " ," "${toString util.bg.b}" " , 1.0)"];
};
services.udiskie.enable = true; # TODO is this fixed now?
services.flatpak.packages = [
"com.logseq.Logseq"
# "com.github.IsmaelMartinez.teams_for_linux"
];
services.flatpak.overrides = {
global = {
Context.sockets = ["wayland" "!x11" "!fallback-x11"];
Environment."ELECTRON_OZONE_PLATFORM_HINT" = "auto";
};
};
services.swayidle = {
enable = true;
timeouts = [
{
timeout = 300;
command = "${lib.getExe pkgs.gtklock} &";
}
{
timeout = 900;
command = "${lib.getExe' pkgs.systemd "systemctl"} suspend";
}
];
# events = [
# {
# event = "before-sleep";
# command = "${lib.getExe pkgs.gtklock}";
# }
# {
# event = "lock";
# command = "${lib.getExe pkgs.gtklock}";
# }
# ];
systemdTarget = "qtile-session.target";
programs.firefox.webapps = {
teams = {
url = "https://teams.microsoft.com";
id = 1;
extraSettings = config.programs.firefox.profiles.default.settings;
name = "Microsoft Teams";
icon = ./ms_teams.png;
};
};
services.udiskie.enable = false; # TODO change once upstream python package is fixed in nixpkgs
programs.vscode = {
enable = true;
extensions = with pkgs.vscode-extensions; [
@ -162,10 +130,10 @@ in {
};
systemd.user.startServices = "sd-switch";
ezServices = with pkgs; {
swaybg = "${lib.getExe swaybg} -i ${rice.bg.image} -m fill";
# swayosd = "${lib.getExe' swayosd "swayosd"} --max-volume 100";
};
# ezServices = with pkgs; {
# swaybg = "${lib.getExe swaybg} -i ${rice.bg.image} -m fill";
# # swayosd = "${lib.getExe' swayosd "swayosd"} --max-volume 100";
# };
xdg.enable = true;
xresources.properties = with palette-hex; {
@ -208,18 +176,18 @@ in {
comment = "A privacy-first, open-source platform for knowledge management and collaboration.";
};
gtk = with pkgs.rice; {
enable = true;
theme = with gtk-theme; {
inherit package name;
};
iconTheme = with icons; {
inherit package name;
};
font = with fonts.sans; {
inherit name size package;
};
};
# gtk = with pkgs.rice; {
# enable = true;
# theme = with gtk-theme; {
# inherit package name;
# };
# iconTheme = with icons; {
# inherit package name;
# };
# font = with fonts.sans; {
# inherit name size package;
# };
# };
programs.direnv = {
enable = true;