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

View file

@ -0,0 +1,17 @@
{
imports =
map
(file: ./${file}.nix)
[
"geoclue2"
"greetd"
"network"
"hypridle"
"hyprland"
"hyprlock"
"regreet"
# "swaylock"
"thunar"
"wayland"
];
}

View file

@ -0,0 +1,3 @@
{
services.geoclue2.enable = true;
}

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

View file

@ -0,0 +1,10 @@
{
flake,
pkgs,
...
}: {
services.hypridle = {
enable = true;
package = flake.inputs.hypridle.packages.${pkgs.system}.hypridle;
};
}

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

View file

@ -0,0 +1,10 @@
{
flake,
pkgs,
...
}: {
programs.hyprlock = {
enable = true;
package = flake.inputs.hyprlock.packages.${pkgs.system}.hyprlock;
};
}

View file

@ -0,0 +1,3 @@
{
programs.nm-applet.enable = true;
}

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

View file

@ -0,0 +1,3 @@
{
security.pam.services.swaylock.text = "auth include login";
}

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

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