chore: init

This commit is contained in:
Nick 2025-10-01 19:51:55 -05:00
commit 1b2c1ea359
891 changed files with 37053 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,29 @@
{
config,
flake,
pkgs,
...
}:
let
inherit (flake.config.people)
user0
;
inherit (flake.config.machines) devices;
mars = devices.mars.name;
host = config.networking.hostName;
in
{
services = {
greetd = {
enable = true;
# vt = 7;
settings = {
default_session = {
command = "${pkgs.tuigreet}/bin/tuigreet --time --time-format '%I:%M %p | %a %h | %F' --theme border=magenta;text=cyan;prompt=green;time=red;action=blue;button=yellow;container=black;input=red --cmd Hyprland";
user = if host == mars then "greeter" else user0;
};
};
};
};
}

View file

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

View file

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

View file

@ -0,0 +1,7 @@
{ pkgs, ... }:
{
programs.regreet = {
enable = false;
package = pkgs.greetd.regreet;
};
}

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