mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-06-16 18:15:13 -05:00
feat: changed some shit up
This commit is contained in:
parent
4d8d534088
commit
241f8063cf
114 changed files with 1356 additions and 168 deletions
17
nixos/modules/hyprland/default.nix
Executable file
17
nixos/modules/hyprland/default.nix
Executable file
|
@ -0,0 +1,17 @@
|
|||
{
|
||||
imports =
|
||||
map
|
||||
(file: ./${file}.nix)
|
||||
[
|
||||
"geoclue2"
|
||||
"greetd"
|
||||
"network"
|
||||
"hypridle"
|
||||
"hyprland"
|
||||
"hyprlock"
|
||||
"regreet"
|
||||
# "swaylock"
|
||||
"thunar"
|
||||
"wayland"
|
||||
];
|
||||
}
|
3
nixos/modules/hyprland/geoclue2.nix
Executable file
3
nixos/modules/hyprland/geoclue2.nix
Executable file
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
services.geoclue2.enable = true;
|
||||
}
|
29
nixos/modules/hyprland/greetd.nix
Executable file
29
nixos/modules/hyprland/greetd.nix
Executable file
|
@ -0,0 +1,29 @@
|
|||
{
|
||||
config,
|
||||
flake,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
inherit
|
||||
(flake.config.people)
|
||||
user0
|
||||
;
|
||||
in {
|
||||
services = {
|
||||
greetd = {
|
||||
enable = true;
|
||||
vt = 7;
|
||||
settings = let
|
||||
default_session = {
|
||||
command = "${lib.meta.getExe config.programs.hyprland.package}";
|
||||
user = user0;
|
||||
};
|
||||
in {
|
||||
inherit
|
||||
default_session
|
||||
;
|
||||
initial_session = default_session;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
10
nixos/modules/hyprland/hypridle.nix
Executable file
10
nixos/modules/hyprland/hypridle.nix
Executable file
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
flake,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
services.hypridle = {
|
||||
enable = true;
|
||||
package = flake.inputs.hypridle.packages.${pkgs.system}.hypridle;
|
||||
};
|
||||
}
|
27
nixos/modules/hyprland/hyprland.nix
Executable file
27
nixos/modules/hyprland/hyprland.nix
Executable file
|
@ -0,0 +1,27 @@
|
|||
{
|
||||
pkgs,
|
||||
flake,
|
||||
...
|
||||
}: {
|
||||
programs.hyprland = {
|
||||
enable = true;
|
||||
xwayland.enable = true;
|
||||
package = flake.inputs.hyprland.packages.${pkgs.system}.hyprland;
|
||||
};
|
||||
xdg.portal = {
|
||||
enable = true;
|
||||
extraPortals = [
|
||||
pkgs.xdg-desktop-portal-gtk
|
||||
];
|
||||
};
|
||||
nix = {
|
||||
settings = {
|
||||
substituters = [
|
||||
"https://hyprland.cachix.org"
|
||||
];
|
||||
trusted-public-keys = [
|
||||
"hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
10
nixos/modules/hyprland/hyprlock.nix
Executable file
10
nixos/modules/hyprland/hyprlock.nix
Executable file
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
flake,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
programs.hyprlock = {
|
||||
enable = true;
|
||||
package = flake.inputs.hyprlock.packages.${pkgs.system}.hyprlock;
|
||||
};
|
||||
}
|
3
nixos/modules/hyprland/network.nix
Executable file
3
nixos/modules/hyprland/network.nix
Executable file
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
programs.nm-applet.enable = true;
|
||||
}
|
43
nixos/modules/hyprland/regreet.nix
Executable file
43
nixos/modules/hyprland/regreet.nix
Executable file
|
@ -0,0 +1,43 @@
|
|||
{
|
||||
pkgs,
|
||||
flake,
|
||||
...
|
||||
}: let
|
||||
inherit (flake.config.aesthetics.themes.theme) font;
|
||||
in {
|
||||
programs.regreet = {
|
||||
enable = true;
|
||||
package = pkgs.greetd.regreet;
|
||||
# font = {
|
||||
# name = font;
|
||||
# size = 11;
|
||||
# package = builtins.attrValues {
|
||||
# inherit
|
||||
# (pkgs.nerd-fonts)
|
||||
# monaspace
|
||||
# ;
|
||||
# };
|
||||
# };
|
||||
theme = {
|
||||
name = "catppuccin-macchiato-mauve-compact";
|
||||
package = pkgs.catppuccin-gtk.override {
|
||||
size = "compact";
|
||||
variant = "macchiato";
|
||||
accents = [
|
||||
"mauve"
|
||||
];
|
||||
};
|
||||
};
|
||||
cursorTheme = {
|
||||
name = "catppuccin-macchiato-dark-cursors";
|
||||
package = pkgs.catppuccin-cursors.macchiatoDark;
|
||||
};
|
||||
iconTheme = {
|
||||
name = "Papirus-Dark";
|
||||
package = pkgs.catppuccin-papirus-folders.override {
|
||||
flavor = "macchiato";
|
||||
accent = "mauve";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
3
nixos/modules/hyprland/swaylock.nix
Executable file
3
nixos/modules/hyprland/swaylock.nix
Executable file
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
security.pam.services.swaylock.text = "auth include login";
|
||||
}
|
10
nixos/modules/hyprland/thunar.nix
Executable file
10
nixos/modules/hyprland/thunar.nix
Executable file
|
@ -0,0 +1,10 @@
|
|||
{pkgs, ...}: {
|
||||
programs.thunar = {
|
||||
enable = true;
|
||||
plugins = [
|
||||
pkgs.xfce.thunar-archive-plugin
|
||||
pkgs.xfce.thunar-volman
|
||||
pkgs.xfce.thunar-media-tags-plugin
|
||||
];
|
||||
};
|
||||
}
|
22
nixos/modules/hyprland/wayland.nix
Executable file
22
nixos/modules/hyprland/wayland.nix
Executable file
|
@ -0,0 +1,22 @@
|
|||
{pkgs, ...}: {
|
||||
environment.sessionVariables.NIXOS_OZONE_WL = "1";
|
||||
|
||||
xdg = {
|
||||
portal = {
|
||||
enable = true;
|
||||
|
||||
extraPortals = builtins.attrValues {
|
||||
inherit
|
||||
(pkgs)
|
||||
# xdg-desktop-portal-hyprland
|
||||
xdg-desktop-portal-wlr
|
||||
xdg-desktop-portal-kde
|
||||
xdg-desktop-portal-gtk
|
||||
;
|
||||
};
|
||||
|
||||
wlr.enable = true;
|
||||
xdgOpenUsePortal = true;
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue