moving hyprland to system-wide instead of hm to test 2

This commit is contained in:
cnst
2024-06-30 07:56:37 +02:00
parent e7df7d8698
commit 51e10705bb
6 changed files with 4 additions and 56 deletions

View File

@@ -1,6 +1,7 @@
{ {
imports = [ imports = [
./git ./git
./hypr
./shell/cnst.nix ./shell/cnst.nix
./appearance ./appearance
]; ];

View File

@@ -13,7 +13,6 @@
extraPortals = [xdph]; extraPortals = [xdph];
configPackages = [hyprland]; configPackages = [hyprland];
}; };
home.packages = with pkgs; [ home.packages = with pkgs; [
grimblast grimblast
slurp slurp
@@ -22,29 +21,10 @@
tofi tofi
gnome.gnome-calculator gnome.gnome-calculator
]; ];
home.sessionVariables = {
BROWSER = "firefox";
NIXOS_OZONE_WL = 1;
SDL_VIDEODRIVER = "wayland";
QT_QPA_PLATFORM = "wayland";
XDG_SESSION_TYPE = "wayland";
QT_WAYLAND_DISABLE_WINDOWDECORATION = "1";
};
wayland.windowManager.hyprland = { wayland.windowManager.hyprland = {
enable = true; enable = true;
package = pkgs.hyprland;
xwayland.enable = true;
extraConfig = '' extraConfig = ''
${builtins.readFile ./hyprland.conf} ${builtins.readFile ./hyprland.conf}
''; '';
systemd = {
enable = true;
extraCommands = [
"systemctl --user stop graphical-session.target"
"systemctl --user start hyprland-session.target"
];
};
}; };
} }

View File

@@ -4,6 +4,7 @@
./firefox ./firefox
./neovim ./neovim
./lutris ./lutris
./mako
]; ];
home.packages = with pkgs; [ home.packages = with pkgs; [
# APPLICATIONS # APPLICATIONS

View File

@@ -11,7 +11,7 @@
./zsh.nix ./zsh.nix
./cnix-pkgs.nix ./cnix-pkgs.nix
./fonts.nix ./fonts.nix
./hypr ./hyprland.nix
]; ];
home-manager = { home-manager = {
# useGlobalPkgs = true; # useGlobalPkgs = true;

View File

@@ -1,7 +0,0 @@
# HYPRLAND CONFIGURATION
source=./land/appearance.conf
source=./land/inputs.conf
source=./land/keybinds.conf
source=./land/rules.conf
source=./land/startup.conf

View File

@@ -1,28 +1,4 @@
{ {pkgs, ...}: {
lib,
config,
pkgs,
...
}: {
imports = [../../../home/extra/mako];
xdg.portal = let
hyprland = config.wayland.windowManager.hyprland.package;
xdph = pkgs.xdg-desktop-portal-hyprland.override {inherit hyprland;};
in {
extraPortals = [xdph];
configPackages = [hyprland];
};
environment.systemPackages = with pkgs; [
grimblast
slurp
hyprpicker
swaybg
tofi
gnome.gnome-calculator
];
environment.variables = { environment.variables = {
BROWSER = "firefox"; BROWSER = "firefox";
NIXOS_OZONE_WL = 1; NIXOS_OZONE_WL = 1;
@@ -36,9 +12,6 @@
enable = true; enable = true;
package = pkgs.hyprland; package = pkgs.hyprland;
xwayland.enable = true; xwayland.enable = true;
extraConfig = ''
${builtins.readFile ./hyprland.conf}
'';
systemd = { systemd = {
enable = true; enable = true;
extraCommands = [ extraCommands = [