feat: changed some shit up
1168
flake.lock
generated
49
flake.nix
|
@ -16,15 +16,14 @@
|
|||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
ghostty = {
|
||||
url = "github:clo4/ghostty-hm-module";
|
||||
url = "github:ghostty-org/ghostty";
|
||||
};
|
||||
nixos-cosmic.url = "github:lilyinstarlight/nixos-cosmic";
|
||||
# edgedb = {
|
||||
# url = "github:edgedb/packages-nix";
|
||||
# inputs.nixpkgs.follows = "nixpkgs";
|
||||
# inputs.flake-parts.follows = "flake-parts";
|
||||
# };
|
||||
|
||||
edgedb = {
|
||||
url = "github:edgedb/packages-nix";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
inputs.flake-parts.follows = "flake-parts";
|
||||
};
|
||||
nur = {
|
||||
url = "github:nix-community/NUR";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
|
@ -39,15 +38,43 @@
|
|||
url = "github:Mic92/sops-nix";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
yazi = {
|
||||
url = "github:sxyazi/yazi";
|
||||
yazi.url = "github:sxyazi/yazi";
|
||||
helix = {
|
||||
url = "github:helix-editor/helix";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
hyprland = {
|
||||
url = "github:hyprwm/Hyprland";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
hypridle = {
|
||||
url = "github:hyprwm/hypridle";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
hyprlock = {
|
||||
url = "github:hyprwm/hyprlock";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
wpaperd = {
|
||||
url = "github:danyspin97/wpaperd";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
waybar = {
|
||||
url = "github:Alexays/Waybar";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
direnv = {
|
||||
url = "github:direnv/direnv";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
helix.url = "github:helix-editor/helix";
|
||||
};
|
||||
|
||||
outputs = inputs:
|
||||
inputs.flake-parts.lib.mkFlake {inherit inputs;} {
|
||||
inputs.flake-parts.lib.mkFlake {
|
||||
inherit
|
||||
inputs
|
||||
;
|
||||
} {
|
||||
imports = [
|
||||
inputs.pre-commit-hooks-nix.flakeModule
|
||||
./home
|
||||
|
|
|
@ -89,7 +89,7 @@ in {
|
|||
dunst
|
||||
easyEffects
|
||||
gammastep
|
||||
hyprland
|
||||
hypr
|
||||
misc-hyprland
|
||||
network
|
||||
swaylock
|
||||
|
|
|
@ -1,6 +1,11 @@
|
|||
{
|
||||
flake,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
programs.direnv = {
|
||||
enable = true;
|
||||
package = flake.inputs.direnv.packages.${pkgs.system}.default;
|
||||
nix-direnv.enable = true;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -3,8 +3,9 @@
|
|||
enable = true;
|
||||
settings = {
|
||||
General = {
|
||||
disabledTrayIcon = false;
|
||||
disabledTrayIcon = true;
|
||||
showStartupLaunchMessage = false;
|
||||
disabledGrimWarning = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
@ -18,6 +18,7 @@
|
|||
in {
|
||||
programs.ghostty = {
|
||||
enable = true;
|
||||
package = flake.inputs.ghostty.packages.${pkgs.system}.default;
|
||||
settings = settingsPath;
|
||||
themes = themesPath;
|
||||
};
|
||||
|
|
|
@ -1,11 +1,15 @@
|
|||
{pkgs, ...}: {
|
||||
{
|
||||
pkgs,
|
||||
flake,
|
||||
...
|
||||
}: {
|
||||
programs.helix = let
|
||||
configPath = ./config;
|
||||
settingsPath = import (configPath + /settings.nix);
|
||||
languagesPath = import (configPath + /languages.nix);
|
||||
in {
|
||||
enable = true;
|
||||
package = pkgs.helix;
|
||||
package = flake.inputs.helix.packages.${pkgs.system}.default;
|
||||
languages = languagesPath;
|
||||
settings = settingsPath;
|
||||
};
|
||||
|
|
7
home/modules/hypr/default.nix
Executable file
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
imports = [
|
||||
./idle
|
||||
./land
|
||||
./wpaperd
|
||||
];
|
||||
}
|
22
home/modules/hypr/idle/config/settings.nix
Executable file
|
@ -0,0 +1,22 @@
|
|||
{pkgs, ...}: {
|
||||
general = {
|
||||
lock_cmd = "pidof swaylock || swaylock";
|
||||
before_sleep_cmd = "loginctl lock-session";
|
||||
};
|
||||
listener = [
|
||||
{
|
||||
timeout = 150;
|
||||
on-timeout = "${pkgs.brightnessctl}/bin/brightnessctl -s set 0";
|
||||
on-resume = "${pkgs.brightnessctl}/bin/brightnessctl -r";
|
||||
}
|
||||
{
|
||||
timeout = 150;
|
||||
on-timeout = "${pkgs.brightnessctl}/bin/brightnessctl -sd rgb:kbd_backlight set 0";
|
||||
on-resume = "${pkgs.brightnessctl}/bin/brightnessctl -rd rgb:kbd_backlight";
|
||||
}
|
||||
{
|
||||
timeout = 300;
|
||||
on-timeout = "systemctl suspend";
|
||||
}
|
||||
];
|
||||
}
|
18
home/modules/hypr/idle/default.nix
Executable file
|
@ -0,0 +1,18 @@
|
|||
{
|
||||
flake,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
configPath = ./config;
|
||||
settingsPath = import (configPath + /settings.nix) {
|
||||
inherit
|
||||
pkgs
|
||||
;
|
||||
};
|
||||
in {
|
||||
services.hypridle = {
|
||||
enable = true;
|
||||
package = flake.inputs.hypridle.packages.${pkgs.system}.hypridle;
|
||||
settings = settingsPath;
|
||||
};
|
||||
}
|
18
home/modules/hypr/land/config/animations.nix
Executable file
|
@ -0,0 +1,18 @@
|
|||
{
|
||||
enabled = true;
|
||||
animation = [
|
||||
"border, 1, 2.2, bounce"
|
||||
"fadeIn, 1, 1, bounce"
|
||||
"fadeOut, 1, 4.5, bounce"
|
||||
"fadeSwitch, 1, 2.2, bounce"
|
||||
"windows, 1, 2.2, bounce"
|
||||
"windowsOut, 1, 1.1, bounce"
|
||||
"workspaces, 1, 2.2, bounce, slide"
|
||||
];
|
||||
bezier = [
|
||||
"wind, 0, 1, 0.5, 1"
|
||||
"winIn, 0, 0.5, 0, 1"
|
||||
"winOut, 0, 0.5, 0, 1"
|
||||
"bounce, 0.7, 1.7, 0.5, 1"
|
||||
];
|
||||
}
|
|
@ -45,8 +45,7 @@ let
|
|||
|
||||
superShiftBinds = builtins.map (x: "SUPER SHIFT, " + x) [
|
||||
# Super+shift binds
|
||||
"S, exec, hyprshot -m region"
|
||||
"W, exec, hyprshot -m window"
|
||||
"S, exec, flameshot gui"
|
||||
"Print, exec, grim -g \"$(slurp)\""
|
||||
"ScrollDown, workspace, previous"
|
||||
"left , movewindow, l"
|
4
home/modules/hypr/land/config/bindl.nix
Executable file
|
@ -0,0 +1,4 @@
|
|||
[
|
||||
",switch:on:Lid Switch, exec, hyprlock --immediate"
|
||||
",switch:off:Lid Switch, exec, hyprlock --immediate"
|
||||
]
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
active_opacity = 0.95;
|
||||
inactive_opacity = 0.95;
|
||||
inactive_opacity = 0.90;
|
||||
fullscreen_opacity = 1;
|
||||
rounding = 10;
|
||||
dim_inactive = 1;
|
|
@ -11,6 +11,7 @@
|
|||
"easyeffects"
|
||||
"pkill easyeffects"
|
||||
"emote"
|
||||
"flameshot"
|
||||
"sgsettings set org.gnome.desktop.interface cursor-theme 'catppuccin-mocha-dark-cursors'"
|
||||
"gsettings set org.gnome.desktop.interface cursor-size 18"
|
||||
]
|
|
@ -4,6 +4,7 @@ let
|
|||
nomacs = "(org.nomacs.ImageLounge)";
|
||||
mpv = "(mpv)";
|
||||
emote = "(emote)";
|
||||
flameshot = "(flameshot)";
|
||||
|
||||
maxsizeWindows = [
|
||||
"maxsize 640 640, class:^${blueman}$"
|
||||
|
@ -17,6 +18,7 @@ let
|
|||
"class:${emote}"
|
||||
"class:${mpv}"
|
||||
"class:${nomacs}"
|
||||
"class:${flameshot}"
|
||||
"title:^(Picture-in-Picture)$"
|
||||
];
|
||||
|
|
@ -1,11 +1,15 @@
|
|||
{pkgs, ...}: let
|
||||
{
|
||||
pkgs,
|
||||
flake,
|
||||
...
|
||||
}: let
|
||||
configPath = ./config;
|
||||
configImports = {
|
||||
animation = import (configPath + /animation.nix);
|
||||
bezier = import (configPath + /bezier.nix);
|
||||
animations = import (configPath + /animations.nix);
|
||||
bind = import (configPath + /bind.nix);
|
||||
bindm = import (configPath + /bindm.nix);
|
||||
binds = import (configPath + /binds.nix);
|
||||
bindl = import (configPath + /bindl.nix);
|
||||
decoration = import (configPath + /decoration.nix);
|
||||
dwindle = import (configPath + /dwindle.nix);
|
||||
exec-once = import (configPath + /exec-once.nix);
|
||||
|
@ -18,10 +22,9 @@
|
|||
in {
|
||||
wayland.windowManager.hyprland = {
|
||||
enable = true;
|
||||
# package = inputs.hyprland.packages.${pkgs.system}.hyprland;
|
||||
package = flake.inputs.hyprland.packages.${pkgs.system}.hyprland;
|
||||
xwayland.enable = true;
|
||||
systemd.enable = false;
|
||||
settings = configImports;
|
||||
};
|
||||
xdg.configFile."wpaperd/wallpaper.toml".source = pkgs.lib.mkForce ./wpaperd/wallpaper.toml;
|
||||
}
|
18
home/modules/hypr/wpaperd/default.nix
Executable file
|
@ -0,0 +1,18 @@
|
|||
{
|
||||
flake,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
programs.wpaperd = {
|
||||
enable = true;
|
||||
package = flake.inputs.wpaperd.packages.${pkgs.system}.default;
|
||||
settings = {
|
||||
"default" = {
|
||||
path = "~/Files/Projects/dotfiles/home/modules/hypr/wpaperd/wallpaper";
|
||||
apply-shadow = true;
|
||||
duration = "1m";
|
||||
sorting = "random";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Before Width: | Height: | Size: 4.2 MiB After Width: | Height: | Size: 4.2 MiB |
Before Width: | Height: | Size: 2.1 MiB After Width: | Height: | Size: 2.1 MiB |
Before Width: | Height: | Size: 2 MiB After Width: | Height: | Size: 2 MiB |
Before Width: | Height: | Size: 4.2 MiB After Width: | Height: | Size: 4.2 MiB |
Before Width: | Height: | Size: 3.3 MiB After Width: | Height: | Size: 3.3 MiB |
Before Width: | Height: | Size: 3.9 MiB After Width: | Height: | Size: 3.9 MiB |
Before Width: | Height: | Size: 3.5 MiB After Width: | Height: | Size: 3.5 MiB |
Before Width: | Height: | Size: 2.6 MiB After Width: | Height: | Size: 2.6 MiB |
Before Width: | Height: | Size: 2.7 MiB After Width: | Height: | Size: 2.7 MiB |
Before Width: | Height: | Size: 3.9 MiB After Width: | Height: | Size: 3.9 MiB |
Before Width: | Height: | Size: 3.5 MiB After Width: | Height: | Size: 3.5 MiB |
Before Width: | Height: | Size: 578 KiB After Width: | Height: | Size: 578 KiB |
Before Width: | Height: | Size: 201 KiB After Width: | Height: | Size: 201 KiB |
Before Width: | Height: | Size: 808 KiB After Width: | Height: | Size: 808 KiB |
Before Width: | Height: | Size: 578 KiB After Width: | Height: | Size: 578 KiB |
Before Width: | Height: | Size: 1.7 MiB After Width: | Height: | Size: 1.7 MiB |
Before Width: | Height: | Size: 3.3 MiB After Width: | Height: | Size: 3.3 MiB |
Before Width: | Height: | Size: 5.1 MiB After Width: | Height: | Size: 5.1 MiB |
Before Width: | Height: | Size: 1.2 MiB After Width: | Height: | Size: 1.2 MiB |
Before Width: | Height: | Size: 3.5 MiB After Width: | Height: | Size: 3.5 MiB |
Before Width: | Height: | Size: 632 KiB After Width: | Height: | Size: 632 KiB |
Before Width: | Height: | Size: 302 KiB After Width: | Height: | Size: 302 KiB |
Before Width: | Height: | Size: 8.2 MiB After Width: | Height: | Size: 8.2 MiB |
Before Width: | Height: | Size: 1.1 MiB After Width: | Height: | Size: 1.1 MiB |
Before Width: | Height: | Size: 3.3 MiB After Width: | Height: | Size: 3.3 MiB |
Before Width: | Height: | Size: 833 KiB After Width: | Height: | Size: 833 KiB |
Before Width: | Height: | Size: 467 KiB After Width: | Height: | Size: 467 KiB |
Before Width: | Height: | Size: 2 MiB After Width: | Height: | Size: 2 MiB |
Before Width: | Height: | Size: 1.8 MiB After Width: | Height: | Size: 1.8 MiB |
Before Width: | Height: | Size: 1.6 MiB After Width: | Height: | Size: 1.6 MiB |
Before Width: | Height: | Size: 257 KiB After Width: | Height: | Size: 257 KiB |
Before Width: | Height: | Size: 261 KiB After Width: | Height: | Size: 261 KiB |
Before Width: | Height: | Size: 144 KiB After Width: | Height: | Size: 144 KiB |
Before Width: | Height: | Size: 501 KiB After Width: | Height: | Size: 501 KiB |
Before Width: | Height: | Size: 252 KiB After Width: | Height: | Size: 252 KiB |
Before Width: | Height: | Size: 646 KiB After Width: | Height: | Size: 646 KiB |
Before Width: | Height: | Size: 422 KiB After Width: | Height: | Size: 422 KiB |
Before Width: | Height: | Size: 552 KiB After Width: | Height: | Size: 552 KiB |
Before Width: | Height: | Size: 366 KiB After Width: | Height: | Size: 366 KiB |
Before Width: | Height: | Size: 1.2 MiB After Width: | Height: | Size: 1.2 MiB |
Before Width: | Height: | Size: 747 KiB After Width: | Height: | Size: 747 KiB |
Before Width: | Height: | Size: 1.3 MiB After Width: | Height: | Size: 1.3 MiB |
Before Width: | Height: | Size: 1.7 MiB After Width: | Height: | Size: 1.7 MiB |
Before Width: | Height: | Size: 665 KiB After Width: | Height: | Size: 665 KiB |
Before Width: | Height: | Size: 1.8 MiB After Width: | Height: | Size: 1.8 MiB |
Before Width: | Height: | Size: 464 KiB After Width: | Height: | Size: 464 KiB |
Before Width: | Height: | Size: 869 KiB After Width: | Height: | Size: 869 KiB |
Before Width: | Height: | Size: 302 KiB After Width: | Height: | Size: 302 KiB |
Before Width: | Height: | Size: 457 KiB After Width: | Height: | Size: 457 KiB |
Before Width: | Height: | Size: 876 KiB After Width: | Height: | Size: 876 KiB |
Before Width: | Height: | Size: 529 KiB After Width: | Height: | Size: 529 KiB |
Before Width: | Height: | Size: 258 KiB After Width: | Height: | Size: 258 KiB |
Before Width: | Height: | Size: 568 KiB After Width: | Height: | Size: 568 KiB |
Before Width: | Height: | Size: 323 KiB After Width: | Height: | Size: 323 KiB |
Before Width: | Height: | Size: 720 KiB After Width: | Height: | Size: 720 KiB |
Before Width: | Height: | Size: 185 KiB After Width: | Height: | Size: 185 KiB |
Before Width: | Height: | Size: 289 KiB After Width: | Height: | Size: 289 KiB |
Before Width: | Height: | Size: 405 KiB After Width: | Height: | Size: 405 KiB |
Before Width: | Height: | Size: 1.6 MiB After Width: | Height: | Size: 1.6 MiB |
Before Width: | Height: | Size: 1.6 MiB After Width: | Height: | Size: 1.6 MiB |
Before Width: | Height: | Size: 1.6 MiB After Width: | Height: | Size: 1.6 MiB |
Before Width: | Height: | Size: 4.1 MiB After Width: | Height: | Size: 4.1 MiB |
Before Width: | Height: | Size: 787 KiB After Width: | Height: | Size: 787 KiB |
Before Width: | Height: | Size: 1.3 MiB After Width: | Height: | Size: 1.3 MiB |
Before Width: | Height: | Size: 1.7 MiB After Width: | Height: | Size: 1.7 MiB |
|
@ -1,9 +0,0 @@
|
|||
[
|
||||
"border, 1, 2.2, bounce"
|
||||
"fadeIn, 1, 0.1, bounce"
|
||||
"fadeOut, 1, 4.5, bounce"
|
||||
"fadeSwitch, 1, 2.2, bounce"
|
||||
"windows, 1, 2.2, bounce"
|
||||
"windowsOut, 1, 1.1, bounce"
|
||||
"workspaces, 1, 2.2, bounce, slide"
|
||||
]
|
|
@ -1,6 +0,0 @@
|
|||
[
|
||||
"wind, 0, 1, 0.5, 1"
|
||||
"winIn, 0, 0.5, 0, 1"
|
||||
"winOut, 0, 0.5, 0, 1"
|
||||
"bounce, 0.7, 1.7, 0.5, 1"
|
||||
]
|
|
@ -1,5 +0,0 @@
|
|||
[default]
|
||||
path = "~/Files/Projects/dotfiles/home/modules/hyprland/wpaperd/wallpaper"
|
||||
duration = "1m"
|
||||
sorting = "random"
|
||||
apply-shadow = false
|
|
@ -4,10 +4,9 @@
|
|||
(pkgs)
|
||||
alsa-utils
|
||||
wl-clipboard
|
||||
wpaperd
|
||||
swaylock
|
||||
playerctl
|
||||
hyprshot
|
||||
brightnessctl
|
||||
;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,4 +1,8 @@
|
|||
{flake, ...}: let
|
||||
{
|
||||
flake,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
configPath = ./config;
|
||||
settingsPath = import (configPath + /settings.nix);
|
||||
stylePath = import (configPath + /style.nix) {
|
||||
|
@ -9,6 +13,7 @@
|
|||
in {
|
||||
programs.waybar = {
|
||||
enable = true;
|
||||
package = flake.inputs.waybar.packages.${pkgs.system}.default;
|
||||
settings = settingsPath;
|
||||
style = stylePath;
|
||||
};
|
||||
|
|
|
@ -1,10 +1,15 @@
|
|||
{
|
||||
flake,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
programs.yazi = let
|
||||
configPath = ./config;
|
||||
keymapPath = import (configPath + /keymap.nix);
|
||||
settingsPath = import (configPath + /settings.nix);
|
||||
in {
|
||||
enable = true;
|
||||
# package = flake.inputs.yazi.packages.${pkgs.system}.yazi;
|
||||
enableNushellIntegration = true;
|
||||
keymap = keymapPath;
|
||||
settings = settingsPath;
|
||||
|
|
|
@ -75,11 +75,6 @@ in {
|
|||
inherit
|
||||
(modules)
|
||||
hyprland
|
||||
geoclue2
|
||||
greetd
|
||||
swaylock
|
||||
thunar
|
||||
wayland
|
||||
;
|
||||
};
|
||||
};
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
inherit
|
||||
(pkgs)
|
||||
git
|
||||
grim
|
||||
pijul
|
||||
sshfs
|
||||
tomb
|
||||
|
@ -19,6 +20,10 @@
|
|||
WLR_DRM_NO_ATOMIC = "1";
|
||||
NIXPKGS_ALLOW_INSECURE = "1";
|
||||
NIXPKGS_ALLOW_UNFREE = "1";
|
||||
FLAMESHOT_ENABLE_WAYLAND = "1";
|
||||
USE_WAYLAND_GRIM = "1";
|
||||
USE_WAYLAND_CLIPBOARD = "1";
|
||||
GTK_THEME = "catppuccin-macchiato-mauve-compact";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,17 +0,0 @@
|
|||
{
|
||||
pkgs,
|
||||
inputs,
|
||||
...
|
||||
}: {
|
||||
programs.hyprland = {
|
||||
enable = true;
|
||||
xwayland.enable = true;
|
||||
# package = inputs.hyprland.packages.${pkgs.system}.hyprland;
|
||||
};
|
||||
xdg.portal = {
|
||||
enable = true;
|
||||
extraPortals = [
|
||||
pkgs.xdg-desktop-portal-gtk
|
||||
];
|
||||
};
|
||||
}
|