mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-06-16 18:15:13 -05:00
chore: moved wayland packages to a higher level
This commit is contained in:
parent
812c022cfe
commit
544171fde9
10 changed files with 46 additions and 38 deletions
11
nixos/modules/wayland/default.nix
Executable file
11
nixos/modules/wayland/default.nix
Executable file
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
imports = map (file: ./${file}.nix) [
|
||||
"geoclue2"
|
||||
"greetd"
|
||||
"network"
|
||||
"regreet"
|
||||
"swaylock"
|
||||
"thunar"
|
||||
"wayland"
|
||||
];
|
||||
}
|
3
nixos/modules/wayland/geoclue2.nix
Executable file
3
nixos/modules/wayland/geoclue2.nix
Executable file
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
services.geoclue2.enable = true;
|
||||
}
|
32
nixos/modules/wayland/greetd.nix
Executable file
32
nixos/modules/wayland/greetd.nix
Executable file
|
@ -0,0 +1,32 @@
|
|||
{
|
||||
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;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
3
nixos/modules/wayland/network.nix
Executable file
3
nixos/modules/wayland/network.nix
Executable file
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
programs.nm-applet.enable = true;
|
||||
}
|
50
nixos/modules/wayland/regreet.nix
Executable file
50
nixos/modules/wayland/regreet.nix
Executable file
|
@ -0,0 +1,50 @@
|
|||
{
|
||||
pkgs,
|
||||
flake,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
let
|
||||
inherit (flake.config.aesthetics.themes)
|
||||
fonts
|
||||
;
|
||||
in
|
||||
{
|
||||
programs.regreet = {
|
||||
enable = true;
|
||||
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
nixos/modules/wayland/swaylock.nix
Executable file
3
nixos/modules/wayland/swaylock.nix
Executable file
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
security.pam.services.swaylock.text = "auth include login";
|
||||
}
|
11
nixos/modules/wayland/thunar.nix
Executable file
11
nixos/modules/wayland/thunar.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
|
||||
];
|
||||
};
|
||||
}
|
20
nixos/modules/wayland/wayland.nix
Executable file
20
nixos/modules/wayland/wayland.nix
Executable file
|
@ -0,0 +1,20 @@
|
|||
{ pkgs, flake, ... }:
|
||||
{
|
||||
environment.sessionVariables.NIXOS_OZONE_WL = "1";
|
||||
|
||||
xdg = {
|
||||
portal = {
|
||||
enable = true;
|
||||
wlr.enable = true;
|
||||
xdgOpenUsePortal = true;
|
||||
extraPortals = builtins.attrValues {
|
||||
inherit (pkgs)
|
||||
xdg-desktop-portal-gtk
|
||||
# xdg-desktop-portal-hyprland
|
||||
xdg-desktop-portal-wlr
|
||||
;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue