Compare commits

...

5 commits

Author SHA1 Message Date
Pedro Rey Anca 02225c295a Add Kde Connect 2024-07-21 13:44:30 +02:00
Pedro Rey Anca c4d22b94a6 Configure QT 2024-07-21 13:44:10 +02:00
Pedro Rey Anca 82ea4a75ae Disable xray 2024-07-21 13:43:28 +02:00
Pedro Rey Anca 3b2d7e021d Update Regreet config 2024-07-21 13:11:15 +02:00
Pedro Rey Anca 392a96f32f FIx environment variables 2024-07-21 13:10:42 +02:00
9 changed files with 43 additions and 13 deletions

View file

@ -20,6 +20,5 @@
++ [(import ./system.nix)]
++ [(import ./user.nix)]
++ [(import ./wayland.nix)]
++ [(import ./variables.nix)]
++ [(import ./virtualisation.nix)];
}

View file

@ -13,4 +13,5 @@
programs.nix-ld.enable = true;
programs.nix-ld.libraries = with pkgs; [];
programs.adb.enable = true;
programs.kdeconnect.enable = true;
}

View file

@ -1,4 +0,0 @@
{...}: {
environment.sessionVariables.NIXOS_OZONE_WL = "1";
environment.sessionVariables.XKB_DEFAULT_LAYOUT = "es";
}

View file

@ -22,7 +22,13 @@
programs.regreet = {
enable = true;
settings = {
background.path = pkgs.nixos-artwork.wallpapers.simple-dark-gray-bottom.gnomeFilePath;
background = {
path = pkgs.nixos-artwork.wallpapers.simple-dark-gray-bottom.gnomeFilePath;
fit = "Cover";
};
};
cageArgs = ["-s" "-m" "last"]; # Only show on the last monitor
};
environment.sessionVariables.XKB_DEFAULT_LAYOUT = "es";
}

View file

@ -15,6 +15,7 @@
++ [(import ./git.nix)] # version control
++ [(import ./gtk.nix)] # gtk theme
++ [(import ./hyprland)] # window manager
++ [(import ./kdeconnect.nix)]
++ [(import ./kitty.nix)] # terminal
++ [(import ./swaync/swaync.nix)] # notification deamon
++ [(import ./nextcloud.nix)] # nextcloud client
@ -24,6 +25,7 @@
++ [(import ./scripts/scripts.nix)] # personal scripts
++ [(import ./spotify.nix)]
++ [(import ./starship.nix)] # shell prompt
++ [(import ./qt.nix)]
++ [(import ./vscodium.nix)] # vscode forck
++ [(import ./waybar)] # status bar
++ [(import ./zsh.nix)]; # shell

View file

@ -3,9 +3,6 @@
settings = {
# autostart
exec-once = [
"systemctl --user import-environment &"
"hash dbus-update-activation-environment 2>/dev/null &"
"dbus-update-activation-environment --systemd --all &"
"nm-applet &"
"wl-clip-persist --clipboard both &"
"bash -c 'if [ ! -f ~/.config/hypr/wallpaper.png ]; then wall-change ~/.config/hypr/default_wallpaper.png; fi'"
@ -85,7 +82,7 @@
ignore_opacity = true;
noise = 0;
new_optimizations = true;
xray = true;
xray = false;
};
drop_shadow = true;

View file

@ -1,4 +1,8 @@
{...}: {
{
lib,
config,
...
}: {
home.sessionVariables = {
NIXOS_OZONE_WL = "1";
ELECTRON_OZONE_PLATFORM_HINT = "auto";
@ -13,16 +17,18 @@
WLR_DRM_NO_ATOMIC = "1";
QT_AUTO_SCREEN_SCALE_FACTOR = "1";
QT_WAYLAND_DISABLE_WINDOWDECORATION = "1";
QT_QPA_PLATFORM = "xcb";
QT_QPA_PLATFORM = "wayland";
QT_QPA_PLATFORMTHEME = "qt5ct";
QT_STYLE_OVERRIDE = "kvantum";
MOZ_ENABLE_WAYLAND = "1";
WLR_BACKEND = "vulkan";
WLR_RENDERER = "vulkan";
WLR_NO_HARDWARE_CURSORS = "1";
XDG_SESSION_TYPE = "wayland";
SDL_VIDEODRIVER = "wayland";
CLUTTER_BACKEND = "wayland";
GTK_THEME = "Dracula";
};
wayland.windowManager.hyprland.systemd.variables = ["--all"];
wayland.windowManager.hyprland.settings.env = lib.attrsets.mapAttrsToList (name: value: "${name},${builtins.toString value}") config.home.sessionVariables;
}

View file

@ -0,0 +1,6 @@
{pkgs, ...}: {
services.kdeconnect = {
enable = true;
indicator = true;
};
}

17
modules/home/qt.nix Normal file
View file

@ -0,0 +1,17 @@
{pkgs, ...}: {
qt.enable = true;
qt.platformTheme.name = "qtct";
qt.style.name = "kvantum";
home.packages = with pkgs; [
libsForQt5.qtstyleplugin-kvantum
];
xdg.configFile."Kvantum/kvantum.kvconfig".source = (pkgs.formats.ini {}).generate "kvantum.kvconfig" {
General.theme = "Catppuccin-Mocha-Lavender";
};
xdg.configFile."Kvantum/Catppuccin-Mocha-Lavender".source = "${(pkgs.catppuccin-kvantum.override {
accent = "Lavender";
variant = "Mocha";
})}/share/Kvantum/Catppuccin-Mocha-Lavender";
}