This commit is contained in:
cnst
2024-06-25 20:00:45 +02:00
parent 64738e8cce
commit 53a862291c
10 changed files with 84 additions and 35 deletions

View File

@@ -32,14 +32,6 @@
homeDirectory = "/home/cnst";
};
home.sessionVariables = {
MOZ_ENABLE_WAYLAND = 1;
NIXOS_OZONE_WL = 1;
SDL_VIDEODRIVER = "wayland";
QT_QPA_PLATFORM = "wayland";
QT_WAYLAND_DISABLE_WINDOWDECORATION = "1";
};
programs.home-manager.enable = true;
# Nicely reload system units when changing configs

View File

@@ -1,5 +1,6 @@
{ pkgs, config, ... }:
{
imports = [ ./gtk.nix ];
xdg = {
userDirs = {
enable = true;
@@ -15,14 +16,13 @@
};
portal = {
enable = true;
xdgOpenUsePortal = true;
extraPortals = [ pkgs.xdg-desktop-portal-gtk ];
config = {
common.default = [ "gtk" ];
hyprland.default = [
"gtk"
"hyprland"
];
};
};
dconf = {
settings = {
"org/gnome/desktop/interface" = {
color-scheme = "prefer-dark";
};
};
};

View File

@@ -19,10 +19,5 @@
name = "FiraCode Nerd Font Light";
size = 11;
};
cursorTheme = {
name = "Adwaita";
package = pkgs.gnome.adwaita-icon-theme;
size = 24;
};
};
}

View File

@@ -2,10 +2,9 @@
imports = [
./firefox
./git
./gtk
./hypr
./neovim
./shell
./xdg
./appearance
];
}

View File

@@ -1,5 +1,39 @@
{ pkgs, ... }:
{
lib,
config,
pkgs,
...
}:
{
imports = [ ../mako ];
xdg.portal =
let
hyprland = config.wayland.windowManager.hyprland.package;
xdph = pkgs.xdg-desktop-portal-hyprland.override { inherit hyprland; };
in
{
extraPortals = [ xdph ];
configPackages = [ hyprland ];
};
home.packages = with pkgs; [
grimblast
slurp
hyprpicker
swaybg
tofi
];
home.sessionVariables = {
MOZ_ENABLE_WAYLAND = 1;
NIXOS_OZONE_WL = 1;
SDL_VIDEODRIVER = "wayland";
QT_QPA_PLATFORM = "wayland";
QT_WAYLAND_DISABLE_WINDOWDECORATION = "1";
LIBSEAT_BACKEND = "logind";
};
wayland.windowManager.hyprland = {
enable = true;
package = pkgs.hyprland;
@@ -7,6 +41,12 @@
extraConfig = ''
${builtins.readFile ./hyprland.conf}
'';
systemd.enable = true;
systemd = {
enable = true;
extraCommands = [
"systemctl --user stop graphical-session.target"
"systemctl --user start hyprland-session.target"
];
};
};
}

View File

@@ -0,0 +1,26 @@
{ pkgs, ... }:
{
home.packages = [ pkgs.libnotify ];
services.mako = {
enable = true;
iconPath = "$HOME/.nix-profile/share/icons/Gruvbox-Plus-Dark";
font = "FiraCode Nerd Font Medium 12";
padding = "10";
margin = "10";
anchor = "bottom-right";
width = 400;
height = 150;
borderSize = 2;
defaultTimeout = 12000;
backgroundColor = "#3c3836dd";
borderColor = "#689d6add";
textColor = "#d5c4a1dd";
layer = "overlay";
extraConfig = ''
max-history=50
outer-margin=25
icon-location=right
'';
};
}

View File

@@ -4,7 +4,6 @@
# Desktop
alacritty
wl-clipboard
dunst
keepassxc
ranger
webcord
@@ -12,23 +11,19 @@
xfce.thunar-volman
xfce.thunar-archive-plugin
gnome.file-roller
swaybg
wireguard-tools
wpa_supplicant
ntfs3g
kdePackages.polkit-kde-agent-1
networkmanagerapplet
blueman
htop
btop
tofi
pamixer
virt-manager
qbittorrent
fastfetch
waybar
nwg-look
mullvad-vpn
thefuck
calcurse
gnome.adwaita-icon-theme