hyprland in home-manager!!!

This commit is contained in:
marty 2025-12-18 07:56:21 +00:00
parent 328bd672af
commit a9119067c5
14 changed files with 80 additions and 44 deletions

View file

@ -1,6 +1,7 @@
{ config, pkgs, ... }:
{
imports = [ ./window_manager ];
# Home Manager needs a bit of information about you and the paths it should
# manage.
home.username = "marty";
@ -17,6 +18,9 @@
# The home.packages option allows you to install Nix packages into your
# environment.
programs.fish.enable = true;
home.packages = with pkgs; [
# # Adds the 'hello' command to your environment. It prints a friendly
# # "Hello, world!" when run.

View file

@ -8,7 +8,6 @@
{
imports = [
./development/import_development.nix
./window_manager/import_wm.nix
];
}

View file

@ -5,22 +5,22 @@
...
}:
let
enable_waybar =
if config.networking.hostName == "marty-pc" then
true
else if config.networking.hostName == "marty-latitude" then
true
else if config.networking.hostName == "marty-server" then
false
else
false;
in
# let
# enable_waybar =
# if config.networking.hostName == "marty-pc" then
# true
# else if config.networking.hostName == "marty-latitude" then
# true
# else if config.networking.hostName == "marty-server" then
# false
# else
# false;
# in
{
programs = {
waybar = {
enable = enable_waybar;
enable = true;
};
};
}

View file

@ -1,6 +1,7 @@
{ config, pkgs, ... }:
{ config, pkgs,... }:
{
home.packages = [pkgs.cmatrix];
programs.rofi = {
enable = true;
theme = "sidebar";

View file

@ -5,26 +5,41 @@
...
}:
let
enable_hyprland =
if config.networking.hostName == "marty-pc" then
true
else if config.networking.hostName == "marty-latitude" then
true
else if config.networking.hostName == "marty-server" then
false
else
false;
in
# let
# enable_hyprland =
# if config.networking.hostName == "marty-pc" then
# true
# else if config.networking.hostName == "marty-latitude" then
# true
# else if config.networking.hostName == "marty-server" then
# false
# else
# false;
# in
{
xdg.portal = {
enable = true;
configPackages = [ pkgs.xdg-desktop-portal-hyprland ];
extraPortals = [ pkgs.xdg-desktop-portal-hyprland ];
};
programs = {
hyprland = {
enable = enable_hyprland;
xwayland.enable = enable_hyprland;
kitty = {
enable = true;
};
hyprlock = {
enable = enable_hyprland;
enable = true;
};
};
wayland.windowManager.hyprland = {
enable = true;
settings = {
"$mod" = "SUPER";
bind = [
"$mod, D, exec, rofi -show drun"
"$mod, Enter, exec, kitty"
];
};
};
home.sessionVariables.NIXOS_OZONE_WL = "1";
}