feat: init

This commit is contained in:
Nick 2025-03-29 23:08:26 -05:00
commit 96c6f790fc
804 changed files with 33411 additions and 0 deletions

View file

@ -0,0 +1,11 @@
let
importList =
let
content = builtins.readDir ./.;
dirContent = builtins.filter (n: content.${n} == "directory") (builtins.attrNames content);
in
map (name: ./. + "/${name}") dirContent;
in
{
imports = importList;
}

View file

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

View file

@ -0,0 +1,45 @@
{
config,
flake,
lib,
...
}:
let
inherit (flake.config.people)
user0
user1
user2
;
inherit (flake.config.machines) devices;
venus = devices.venus.name;
charon = devices.charon.name;
host = config.networking.hostName;
in
{
services = {
greetd = {
enable = true;
vt = 7;
settings =
let
default_session = {
command = "${lib.meta.getExe config.programs.hyprland.package}";
user =
if host == charon then
user1
else if host == venus then
user2
else
user0;
};
in
{
inherit
default_session
;
initial_session = default_session;
};
};
};
}

View file

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

View file

@ -0,0 +1,21 @@
{ pkgs, flake, ... }:
{
environment.sessionVariables.NIXOS_OZONE_WL = "1";
xdg = {
portal = {
enable = true;
wlr.enable = true;
config.common.default = "*";
xdgOpenUsePortal = true;
extraPortals = builtins.attrValues {
inherit (pkgs)
xdg-desktop-portal-gtk
# xdg-desktop-portal-hyprland
xdg-desktop-portal-wlr
;
};
};
};
}

View file

@ -0,0 +1,50 @@
{
pkgs,
flake,
lib,
...
}:
let
inherit (flake.config.aesthetics.themes)
fonts
;
in
{
programs.regreet = {
enable = false;
package = pkgs.greetd.regreet;
# settings = {
# appearance = {
# greeting_msg = "Back for more, I see.";
# };
# GTK = {
# application_prefer_dark_theme = true;
# cursor_theme_name = lib.mkForce "catppuccin-macchiato-dark-cursors";
# font_name = lib.mkForce "${fonts.names.name0} ${font.size.desktop}";
# icon_theme_name = lib.mkForce "Papirus-Dark";
# theme_name = lib.mkForce "catppuccin-macchiato-mauve-compact";
# };
# };
# 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,11 @@
{ pkgs, ... }:
{
programs.thunar = {
enable = true;
plugins = [
pkgs.xfce.thunar-archive-plugin
pkgs.xfce.thunar-volman
pkgs.xfce.thunar-media-tags-plugin
];
};
}