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 2c8e5e3
Show file tree
Hide file tree
Showing 14 changed files with 66 additions and 77 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
34 changes: 0 additions & 34 deletions home/user/gtk.nix

This file was deleted.

1 change: 0 additions & 1 deletion home/user/packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
uv
go
rustup
kitty
yq
bat

Expand Down
2 changes: 2 additions & 0 deletions home/user/programs/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
./firefox.nix
./git.nix
./home-manager.nix
./hyprland.nix
./kitty.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; }
6 changes: 6 additions & 0 deletions home/user/programs/kitty.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
programs.kitty = {
enable = true;
font = "JetBrainsMono Nerd Font";
};
}
28 changes: 28 additions & 0 deletions home/user/theme.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{ pkgs, ... }:
{
home.pointerCursor = {
gtk.enable = true;
package = pkgs.bibata-cursors;
name = "Bibata-Modern-Classic";
size = 16;
};

gtk = {
enable = true;

theme = {
name = "Orchis-Dark-Compact";
package = pkgs.orchis-theme;
};

iconTheme = {
name = "Adwaita Dark";
package = pkgs.gnome.adwaita-icon-theme;
};

font = {
name = "Sans";
size = 11;
};
};
}
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.

6 changes: 6 additions & 0 deletions system/modules/logind.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
services.logind = {
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 2c8e5e3

Please sign in to comment.