Skip to content

Commit

Permalink
feat: try hyprland with home-manager
Browse files Browse the repository at this point in the history
  • Loading branch information
M0NsTeRRR committed Sep 26, 2024
1 parent 0d05c94 commit cf8f105
Show file tree
Hide file tree
Showing 11 changed files with 42 additions and 45 deletions.
22 changes: 1 addition & 21 deletions home/config/hypr/hyprland.conf
Original file line number Diff line number Diff line change
Expand Up @@ -39,27 +39,7 @@ exec-once = swaync
#############################

# See https://wiki.hyprland.org/Configuring/Environment-variables/
env = NIXOS_OZONE_WL,1
env = WLR_RENDERER_ALLOW_SOFTWARE,1

# https://wiki.hyprland.org/Configuring/Environment-variables/
env = CLUTTER_BACKEND,waland
env = XDG_CURRENT_DESKTOP,Hyprland
env = XDG_SESSION_TYPE,wayland
env = XDG_SESSION_DESKTOP,Hyprland
env = XDG_CACHE_HOME,$HOME/.cache
env = XDG_CONFIG_HOME,$HOME/.config
env = XDG_DATA_HOME,$HOME/.local/share
env = GDK_BACKEND,wayland
env = GTK_USE_PORTAL,1
env = QT_QPA_PLATFORM,wayland
env = QT_QPA_PLATFORMTHEME,qt6ct
env = QT_WAYLAND_DISABLE_WINDOWDECORATION,1
env = QT_AUTO_SCREEN_SCALE_FACTOR,1
env = SDL_VIDEODRIVER,wayland

# others
env = MOZ_ENABLE_WAYLAND,1


#####################
### LOOK AND FEEL ###
Expand Down
7 changes: 0 additions & 7 deletions home/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,5 @@
homeDirectory = "/home/${username}";
};

home.pointerCursor = {
gtk.enable = true;
package = pkgs.catppuccin-cursors.macchiatoLight;
name = "Catppuccin-Macchiato-Light";
size = 24;
};

home.stateVersion = "24.05";
}
1 change: 1 addition & 0 deletions home/user/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
./packages.nix
./programs
./script.nix
./theme.nix
];

nixpkgs.config.allowUnfreePredicate =
Expand Down
19 changes: 19 additions & 0 deletions home/user/environment.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,24 @@
{
home.sessionVariables = {
NIXOS_OZONE_WL = "1";
WLR_RENDERER_ALLOW_SOFTWARE = "1";

# https://wiki.hyprland.org/Configuring/Environment-variables/
CLUTTER_BACKEND = "waland";
XDG_CURRENT_DESKTOP = "Hyprland";
XDG_SESSION_TYPE = "wayland";
XDG_SESSION_DESKTOP = "Hyprland";
GDK_BACKEND = "wayland";
GTK_USE_PORTAL = "1";
QT_QPA_PLATFORM = "wayland";
QT_QPA_PLATFORMTHEME = "qt6ct";
QT_WAYLAND_DISABLE_WINDOWDECORATION = "1";
QT_AUTO_SCREEN_SCALE_FACTOR = "1";
SDL_VIDEODRIVER = "wayland";

# others
MOZ_ENABLE_WAYLAND = "1";

# Python SSL self signed certs
REQUESTS_CA_BUNDLE = "/etc/ssl/certs/ca-certificates.crt";
};
Expand Down
1 change: 1 addition & 0 deletions home/user/programs/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
./firefox.nix
./git.nix
./home-manager.nix
./hyprland.nix
./starship.nix
./vscode.nix
./zsh.nix
Expand Down
1 change: 1 addition & 0 deletions home/user/programs/hyprland.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{ wayland.windowManager.hyprland.enable = true; }
13 changes: 10 additions & 3 deletions home/user/gtk.nix → home/user/theme.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
{ pkgs, ... }:
{
home.pointerCursor = {
gtk.enable = true;
package = pkgs.bibata-cursors;
name = "Bibata-Modern-Classic";
size = 16;
};

gtk = {
enable = true;

Expand All @@ -14,8 +21,8 @@
};

font = {
name = "JetBrainsMono Nerd Font";
size = 12;
name = "Sans";
size = 11;
};

gtk3.extraConfig = {
Expand All @@ -31,4 +38,4 @@
};

};
}
}
2 changes: 1 addition & 1 deletion system/modules/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
./boot.nix
./ca-certificates.nix
./dns.nix
./dm.nix
./file.nix
./game.nix
./gpg.nix
./internationalization.nix
./logind.nix
./network.nix
./nixsettings.nix
./video.nix
Expand Down
12 changes: 0 additions & 12 deletions system/modules/dm.nix

This file was deleted.

7 changes: 7 additions & 0 deletions system/modules/logind.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
services.logind = {
enable = true;
powerKey = "suspend-then-hibernate";
powerKeyLongPress = "poweroff";
};
}
2 changes: 1 addition & 1 deletion system/modules/nixsettings.nix
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
options = "--delete-older-than 7d";
};
};

nixpkgs.config.allowUnfreePredicate =
pkg:
builtins.elem (lib.getName pkg) [
Expand Down

0 comments on commit cf8f105

Please sign in to comment.