feat: changed some shit up

This commit is contained in:
Nick 2025-01-09 02:09:02 -06:00
parent 4d8d534088
commit 241f8063cf
114 changed files with 1356 additions and 168 deletions

1168
flake.lock generated

File diff suppressed because it is too large Load diff

View file

@ -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

View file

@ -89,7 +89,7 @@ in {
dunst
easyEffects
gammastep
hyprland
hypr
misc-hyprland
network
swaylock

View file

@ -1,6 +1,11 @@
{
flake,
pkgs,
...
}: {
programs.direnv = {
enable = true;
package = flake.inputs.direnv.packages.${pkgs.system}.default;
nix-direnv.enable = true;
};
}

View file

@ -3,8 +3,9 @@
enable = true;
settings = {
General = {
disabledTrayIcon = false;
disabledTrayIcon = true;
showStartupLaunchMessage = false;
disabledGrimWarning = true;
};
};
};

View file

@ -18,6 +18,7 @@
in {
programs.ghostty = {
enable = true;
package = flake.inputs.ghostty.packages.${pkgs.system}.default;
settings = settingsPath;
themes = themesPath;
};

View file

@ -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
View file

@ -0,0 +1,7 @@
{
imports = [
./idle
./land
./wpaperd
];
}

View 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";
}
];
}

View 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;
};
}

View 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"
];
}

View file

@ -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"

View file

@ -0,0 +1,4 @@
[
",switch:on:Lid Switch, exec, hyprlock --immediate"
",switch:off:Lid Switch, exec, hyprlock --immediate"
]

View file

@ -1,6 +1,6 @@
{
active_opacity = 0.95;
inactive_opacity = 0.95;
inactive_opacity = 0.90;
fullscreen_opacity = 1;
rounding = 10;
dim_inactive = 1;

View file

@ -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"
]

View file

@ -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)$"
];

View file

@ -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;
}

View 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";
};
};
};
}

View file

Before

Width:  |  Height:  |  Size: 2.1 MiB

After

Width:  |  Height:  |  Size: 2.1 MiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 2 MiB

After

Width:  |  Height:  |  Size: 2 MiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 4.2 MiB

After

Width:  |  Height:  |  Size: 4.2 MiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 3.3 MiB

After

Width:  |  Height:  |  Size: 3.3 MiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 3.9 MiB

After

Width:  |  Height:  |  Size: 3.9 MiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 3.5 MiB

After

Width:  |  Height:  |  Size: 3.5 MiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 2.6 MiB

After

Width:  |  Height:  |  Size: 2.6 MiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 2.7 MiB

After

Width:  |  Height:  |  Size: 2.7 MiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 3.9 MiB

After

Width:  |  Height:  |  Size: 3.9 MiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 3.5 MiB

After

Width:  |  Height:  |  Size: 3.5 MiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 578 KiB

After

Width:  |  Height:  |  Size: 578 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 201 KiB

After

Width:  |  Height:  |  Size: 201 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 808 KiB

After

Width:  |  Height:  |  Size: 808 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 578 KiB

After

Width:  |  Height:  |  Size: 578 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 1.7 MiB

After

Width:  |  Height:  |  Size: 1.7 MiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 3.3 MiB

After

Width:  |  Height:  |  Size: 3.3 MiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 5.1 MiB

After

Width:  |  Height:  |  Size: 5.1 MiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 1.2 MiB

After

Width:  |  Height:  |  Size: 1.2 MiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 3.5 MiB

After

Width:  |  Height:  |  Size: 3.5 MiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 632 KiB

After

Width:  |  Height:  |  Size: 632 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 302 KiB

After

Width:  |  Height:  |  Size: 302 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 8.2 MiB

After

Width:  |  Height:  |  Size: 8.2 MiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 1.1 MiB

After

Width:  |  Height:  |  Size: 1.1 MiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 3.3 MiB

After

Width:  |  Height:  |  Size: 3.3 MiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 833 KiB

After

Width:  |  Height:  |  Size: 833 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 467 KiB

After

Width:  |  Height:  |  Size: 467 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 2 MiB

After

Width:  |  Height:  |  Size: 2 MiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 1.8 MiB

After

Width:  |  Height:  |  Size: 1.8 MiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 1.7 MiB

After

Width:  |  Height:  |  Size: 1.7 MiB

Before After
Before After

View file

@ -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"
]

View file

@ -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"
]

View file

@ -1,5 +0,0 @@
[default]
path = "~/Files/Projects/dotfiles/home/modules/hyprland/wpaperd/wallpaper"
duration = "1m"
sorting = "random"
apply-shadow = false

View file

@ -4,10 +4,9 @@
(pkgs)
alsa-utils
wl-clipboard
wpaperd
swaylock
playerctl
hyprshot
brightnessctl
;
};
}

View file

@ -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;
};

View file

@ -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;

View file

@ -75,11 +75,6 @@ in {
inherit
(modules)
hyprland
geoclue2
greetd
swaylock
thunar
wayland
;
};
};

View file

@ -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";
};
};
}

View file

@ -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
];
};
}

Some files were not shown because too many files have changed in this diff Show more