2024-10-15 11:47:14 +04:00
|
|
|
{ inputs, outputs, options, config, lib, pkgs, ... }:
|
|
|
|
let cfg = config.modules.desktop.hyprland;
|
|
|
|
in {
|
|
|
|
imports = [ inputs.hyprland.nixosModules.default ];
|
|
|
|
|
|
|
|
options.modules.desktop.hyprland = { enable = lib.mkEnableOption false; };
|
2023-07-21 16:21:45 +04:00
|
|
|
|
2024-08-01 16:24:09 +04:00
|
|
|
config = lib.mkIf cfg.enable {
|
2024-08-04 02:54:06 +04:00
|
|
|
|
2024-10-15 11:47:14 +04:00
|
|
|
modules.desktop.dunst.enable = lib.mkForce false;
|
2024-08-27 21:22:42 +04:00
|
|
|
|
2024-10-15 11:47:14 +04:00
|
|
|
services.gnome.gnome-keyring.enable = true;
|
2024-08-11 15:52:13 +04:00
|
|
|
|
2024-10-15 11:47:14 +04:00
|
|
|
services.greetd = {
|
|
|
|
enable = true;
|
|
|
|
settings = {
|
|
|
|
terminal = { vt = 2; };
|
|
|
|
default_session = {
|
|
|
|
command =
|
|
|
|
"${pkgs.greetd.tuigreet}/bin/tuigreet --time --time-format '%I:%M %p | %a • %h | %F' --cmd Hyprland";
|
|
|
|
user = "greeter";
|
|
|
|
};
|
2024-08-05 01:37:56 +04:00
|
|
|
};
|
|
|
|
};
|
2024-08-04 02:54:06 +04:00
|
|
|
|
2024-10-15 11:47:14 +04:00
|
|
|
# https://github.com/apognu/tuigreet/issues/68#issuecomment-1586359960
|
|
|
|
# make greetd not have systemd logs overlap
|
|
|
|
systemd.services.greetd.serviceConfig = {
|
|
|
|
Type = "idle";
|
|
|
|
StandardInput = "tty";
|
|
|
|
StandardOutput = "tty";
|
|
|
|
StandardError = "journal"; # Without this errors will spam on screen
|
|
|
|
# Without these bootlogs will spam on screen
|
|
|
|
TTYReset = true;
|
|
|
|
TTYVHangup = true;
|
|
|
|
TTYVTDisallocate = true;
|
|
|
|
};
|
2024-08-12 21:34:03 +04:00
|
|
|
|
2024-10-15 11:47:14 +04:00
|
|
|
services.xserver = {
|
|
|
|
enable = true;
|
|
|
|
# displayManager = {
|
|
|
|
# # lightdm = {
|
|
|
|
# # enable = true;
|
|
|
|
# # background = ../../../config/background.png;
|
|
|
|
# # greeters.gtk = {
|
|
|
|
# # enable = true;
|
|
|
|
# # theme = {
|
|
|
|
# # name = "vimix-dark-ruby";
|
|
|
|
# # package = pkgs.vimix-gtk-themes;
|
|
|
|
# # };
|
|
|
|
# # };
|
|
|
|
# # };
|
|
|
|
# gdm = {
|
|
|
|
# enable = true;
|
|
|
|
# };
|
|
|
|
# };
|
|
|
|
};
|
|
|
|
services.libinput = {
|
2023-07-22 17:04:25 +04:00
|
|
|
enable = true;
|
|
|
|
|
2024-10-15 11:47:14 +04:00
|
|
|
# no mouse accel
|
|
|
|
mouse = { accelProfile = "flat"; };
|
2023-07-22 17:04:25 +04:00
|
|
|
|
2024-10-15 11:47:14 +04:00
|
|
|
# no touchpad accel
|
|
|
|
touchpad = { accelProfile = "flat"; };
|
|
|
|
};
|
2023-07-22 17:04:25 +04:00
|
|
|
|
|
|
|
users.users.sako.packages = with pkgs; [
|
|
|
|
# use wayland counterparts
|
|
|
|
wofi
|
2024-08-03 20:59:22 +04:00
|
|
|
rofi-wayland
|
2023-07-22 17:04:25 +04:00
|
|
|
# network
|
|
|
|
networkmanagerapplet
|
|
|
|
# brightness
|
|
|
|
# TODO(sako):: find one for wayland
|
|
|
|
catppuccin-cursors.mochaDark
|
2023-08-31 08:46:27 +04:00
|
|
|
# screenshot
|
2024-08-05 17:19:42 +04:00
|
|
|
sway-contrib.grimshot
|
2023-08-29 13:48:16 +04:00
|
|
|
# todo figure this out
|
2023-07-24 16:31:21 +04:00
|
|
|
gamescope
|
2024-08-05 17:19:42 +04:00
|
|
|
# playerctl
|
|
|
|
playerctl
|
2023-07-22 19:52:49 +04:00
|
|
|
];
|
2023-07-22 19:53:16 +04:00
|
|
|
environment.systemPackages = with pkgs; [
|
2023-07-22 19:52:49 +04:00
|
|
|
# bg
|
2024-09-01 20:59:32 +04:00
|
|
|
inputs.hyprpaper.packages.${pkgs.system}.default
|
2023-07-22 20:08:50 +04:00
|
|
|
# bar
|
2024-08-05 05:44:00 +04:00
|
|
|
waybar
|
2023-09-07 08:24:53 +04:00
|
|
|
# lock
|
2024-08-07 16:18:10 +04:00
|
|
|
# swaylock
|
2024-09-17 17:56:22 +04:00
|
|
|
inputs.ags.packages.${pkgs.system}.default
|
2023-08-31 08:27:56 +04:00
|
|
|
brightnessctl
|
2023-07-22 20:42:35 +04:00
|
|
|
inotify-tools
|
2024-08-04 03:03:00 +04:00
|
|
|
greetd.tuigreet
|
2024-08-11 15:52:13 +04:00
|
|
|
# notifications
|
|
|
|
mako
|
2024-08-11 23:05:15 +04:00
|
|
|
# cursor
|
2024-08-27 17:11:59 +04:00
|
|
|
catppuccin-cursors.mochaDark
|
2024-09-05 08:39:14 +04:00
|
|
|
# gtk
|
|
|
|
fluent-gtk-theme
|
2024-09-05 09:52:46 +04:00
|
|
|
fluent-icon-theme
|
2024-09-06 09:50:08 +04:00
|
|
|
# clipboard
|
|
|
|
wl-clipboard
|
2023-07-22 17:04:25 +04:00
|
|
|
];
|
2023-07-22 19:52:49 +04:00
|
|
|
|
2024-10-15 11:47:14 +04:00
|
|
|
programs.hyprland = { enable = true; };
|
2024-08-05 02:39:56 +04:00
|
|
|
|
2024-08-07 16:00:51 +04:00
|
|
|
programs.hyprlock.enable = true;
|
|
|
|
|
2024-08-05 03:31:02 +04:00
|
|
|
# ags battery
|
2024-09-04 21:46:54 +04:00
|
|
|
services.upower.enable = true;
|
2024-08-05 03:31:02 +04:00
|
|
|
|
2024-08-05 02:39:56 +04:00
|
|
|
# piece of shit thanks!
|
|
|
|
services.emacs.startWithGraphical = false;
|
|
|
|
|
2024-10-15 11:47:14 +04:00
|
|
|
home-manager.users.sako = { pkgs, ... }: {
|
2023-07-22 17:04:25 +04:00
|
|
|
home.pointerCursor = {
|
2024-08-27 17:23:40 +04:00
|
|
|
# name = "Catppuccin-Mocha-Dark";
|
|
|
|
name = "catppuccin-mocha-dark-cursors";
|
2024-11-15 21:57:46 +04:00
|
|
|
size = 16;
|
2023-07-22 17:04:25 +04:00
|
|
|
gtk.enable = true;
|
|
|
|
package = pkgs.catppuccin-cursors.mochaDark;
|
|
|
|
};
|
|
|
|
gtk = {
|
2023-08-29 13:48:16 +04:00
|
|
|
enable = true;
|
2024-10-15 11:47:14 +04:00
|
|
|
theme.name = "Fluent-pink-Dark";
|
|
|
|
iconTheme.name = "Fluent-pink-dark";
|
2023-07-22 17:04:25 +04:00
|
|
|
};
|
2024-10-15 11:47:14 +04:00
|
|
|
home.file = {
|
2023-07-22 17:04:25 +04:00
|
|
|
"background.png" = {
|
|
|
|
enable = true;
|
|
|
|
source = ../../../config/background.png;
|
|
|
|
};
|
2024-08-05 17:19:42 +04:00
|
|
|
# this automatically sets the types
|
|
|
|
# thanks PartyWumpus
|
|
|
|
# https://github.com/PartyWumpus/dotfiles/blob/277949d84d53a58a3f52be935cd3c581c89d5d7c/modules/hyprland/hyprland.nix#L492
|
2024-11-15 21:57:46 +04:00
|
|
|
# "/nixos/config/ags/types" = {
|
|
|
|
# source =
|
|
|
|
# "${inputs.ags.packages.x86_64-linux.agsWithTypes.out}/share/com.github.Aylur.ags/types";
|
|
|
|
# };
|
2023-07-22 17:04:25 +04:00
|
|
|
};
|
|
|
|
xdg.configFile = {
|
2023-07-22 19:32:42 +04:00
|
|
|
hypr = {
|
2024-10-15 11:47:14 +04:00
|
|
|
source = ../../../config/hyprland;
|
2023-07-22 19:32:42 +04:00
|
|
|
recursive = true;
|
|
|
|
};
|
2023-07-22 20:08:50 +04:00
|
|
|
waybar = {
|
|
|
|
source = ../../../config/waybar;
|
|
|
|
recursive = true;
|
|
|
|
};
|
2024-08-07 16:18:10 +04:00
|
|
|
# swaylock = {
|
|
|
|
# source = ../../../config/swaylock;
|
|
|
|
# recursive = true;
|
|
|
|
# };
|
2024-11-15 21:57:46 +04:00
|
|
|
#ags = {
|
|
|
|
# source = ../../../config/ags;
|
|
|
|
# recursive = true;
|
|
|
|
#};
|
2024-10-15 11:47:14 +04:00
|
|
|
};
|
2023-07-22 17:04:25 +04:00
|
|
|
};
|
2023-09-07 08:36:24 +04:00
|
|
|
|
2024-08-09 03:25:54 +04:00
|
|
|
environment.sessionVariables.NIXOS_OZONE_WL = "1";
|
|
|
|
|
2023-09-07 08:36:24 +04:00
|
|
|
# swaylock doesnt work without this
|
2024-08-07 16:18:10 +04:00
|
|
|
# security.pam.services.swaylock.text = ''
|
|
|
|
# # PAM configuration file for the swaylock screen locker. By default, it includes
|
|
|
|
# # the 'login' configuration file (see /etc/pam.d/login)
|
|
|
|
# auth include login
|
|
|
|
# '';
|
2023-09-07 08:36:24 +04:00
|
|
|
|
2023-07-21 16:21:45 +04:00
|
|
|
};
|
|
|
|
}
|