mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-06-16 10:05:13 -05:00
feat: init
This commit is contained in:
commit
96c6f790fc
804 changed files with 33411 additions and 0 deletions
11
modules/nixos/desktop/wayland/default.nix
Executable file
11
modules/nixos/desktop/wayland/default.nix
Executable 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;
|
||||
}
|
3
modules/nixos/desktop/wayland/geoclue2/default.nix
Executable file
3
modules/nixos/desktop/wayland/geoclue2/default.nix
Executable file
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
services.geoclue2.enable = true;
|
||||
}
|
45
modules/nixos/desktop/wayland/greetd/default.nix
Executable file
45
modules/nixos/desktop/wayland/greetd/default.nix
Executable 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;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
3
modules/nixos/desktop/wayland/network/default.nix
Executable file
3
modules/nixos/desktop/wayland/network/default.nix
Executable file
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
programs.nm-applet.enable = true;
|
||||
}
|
21
modules/nixos/desktop/wayland/portals/default.nix
Executable file
21
modules/nixos/desktop/wayland/portals/default.nix
Executable 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
|
||||
;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
}
|
50
modules/nixos/desktop/wayland/regreet/default.nix
Executable file
50
modules/nixos/desktop/wayland/regreet/default.nix
Executable 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";
|
||||
# };
|
||||
# };
|
||||
};
|
||||
}
|
3
modules/nixos/desktop/wayland/swaylock/default.nix
Executable file
3
modules/nixos/desktop/wayland/swaylock/default.nix
Executable file
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
security.pam.services.swaylock.text = "auth include login";
|
||||
}
|
11
modules/nixos/desktop/wayland/thunar/default.nix
Executable file
11
modules/nixos/desktop/wayland/thunar/default.nix
Executable 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
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue