Compare commits
No commits in common. "9794b2a2d7297b3126d40c733d11baab81de5f2f" and "a73cccb89417dbef4e3d1b777bb8e4c9fd7e8a4f" have entirely different histories.
9794b2a2d7
...
a73cccb894
4 changed files with 17 additions and 80 deletions
|
@ -2,7 +2,7 @@ import { Widget } from "../../../import.js";
|
||||||
|
|
||||||
const nixosLogo = () =>
|
const nixosLogo = () =>
|
||||||
Widget.Icon({
|
Widget.Icon({
|
||||||
icon: "/home/notoh/snowflake/home/programs/ags/config/js/widgets/images/static/nixos.png"
|
icon: "/home/notoh/snowflake/home/ags/config/js/widgets/images/static/nixos.png"
|
||||||
});
|
});
|
||||||
|
|
||||||
export { nixosLogo };
|
export { nixosLogo };
|
||||||
|
|
|
@ -1,12 +1,23 @@
|
||||||
{
|
{
|
||||||
pkgs,
|
pkgs,
|
||||||
config,
|
|
||||||
inputs,
|
inputs,
|
||||||
...
|
...
|
||||||
}: {
|
}: let
|
||||||
|
dbus-hyprland-environment = pkgs.writeTextFile {
|
||||||
|
name = "dbus-hyprland-environment";
|
||||||
|
destination = "/bin/dbus-hyprland-environment";
|
||||||
|
executable = true;
|
||||||
|
text = ''
|
||||||
|
dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=hyprland
|
||||||
|
systemctl --user stop pipewire pipewire-media-session xdg-desktop-portal xdg-desktop-portal-wlr
|
||||||
|
systemctl --user start pipewire wireplumber pipewire-media-session xdg-desktop-portal xdg-desktop-portal-hyprland
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
in {
|
||||||
imports = [./services/greetd.nix];
|
imports = [./services/greetd.nix];
|
||||||
environment = {
|
environment = {
|
||||||
systemPackages = with pkgs; [
|
systemPackages = with pkgs; [
|
||||||
|
dbus-hyprland-environment
|
||||||
wayland
|
wayland
|
||||||
glib
|
glib
|
||||||
grim
|
grim
|
||||||
|
|
|
@ -1,82 +1,12 @@
|
||||||
{
|
_: {
|
||||||
pkgs,
|
|
||||||
inputs,
|
|
||||||
lib,
|
|
||||||
...
|
|
||||||
}: let
|
|
||||||
hyprlandGreetdConf = pkgs.writeText "hyprland-greetd-conf.conf" ''
|
|
||||||
|
|
||||||
monitor = HDMI-A-1,disable
|
|
||||||
monitor = DP-1,disable
|
|
||||||
monitor = DP-2,2560x1440@144, 0x0, auto
|
|
||||||
monitor = DP-3,disable
|
|
||||||
|
|
||||||
env = LIBVA_DRIVER_NAME,nvidia
|
|
||||||
env = XDG_SESSION_TYPE,wayland
|
|
||||||
env = GBM_BACKEND,nvidia-drm
|
|
||||||
env = __GLX_VENDOR_LIBRARY_NAME,nvidia
|
|
||||||
env = WLR_NO_HARDWARE_CURSORS,1
|
|
||||||
|
|
||||||
exec-once = ${pkgs.dbus}/bin/dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY XDG_CURRENT_DESKTOP HYPRLAND_INSTANCE_SIGNATURE
|
|
||||||
exec-once = ${lib.getExe pkgs.greetd.regreet}; hyprctl dispatch exit
|
|
||||||
exec-once = systemctl --user restart xdg-desktop-portal xdg-desktop-portal-hyprland
|
|
||||||
|
|
||||||
windowrulev2 = fullscreen, title:^regreet$
|
|
||||||
windowrulev2 = move 0 0, title:^regreet$
|
|
||||||
|
|
||||||
$mainMod = SUPER
|
|
||||||
bind = $mainMod, Q, exec, reboot
|
|
||||||
|
|
||||||
input {
|
|
||||||
kb_layout = us
|
|
||||||
follow_mouse = 1
|
|
||||||
sensitivity = -0.5
|
|
||||||
force_no_accel = true
|
|
||||||
}
|
|
||||||
|
|
||||||
animations {
|
|
||||||
enabled = false
|
|
||||||
first_launch_animation = false
|
|
||||||
}
|
|
||||||
|
|
||||||
misc {
|
|
||||||
disable_hyprland_logo = true
|
|
||||||
disable_splash_rendering = true
|
|
||||||
}
|
|
||||||
|
|
||||||
'';
|
|
||||||
in {
|
|
||||||
services.greetd = {
|
services.greetd = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = rec {
|
settings = rec {
|
||||||
initial_session = {
|
initial_session = {
|
||||||
command = "${lib.getExe inputs.hyprland.packages.${pkgs.system}.default} --config ${hyprlandGreetdConf}";
|
command = "Hyprland";
|
||||||
user = "greeter";
|
user = "notoh";
|
||||||
};
|
};
|
||||||
default_session = initial_session;
|
default_session = initial_session;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
programs.regreet = {
|
|
||||||
enable = true;
|
|
||||||
settings = {
|
|
||||||
background.path = "/etc/greetd/frieren.png";
|
|
||||||
env = {
|
|
||||||
SESSION_DIRS = "/etc/greetd/environments";
|
|
||||||
};
|
|
||||||
terminal = {
|
|
||||||
vt = 1;
|
|
||||||
};
|
|
||||||
commands = {
|
|
||||||
reboot = ["systemctl" "reboot"];
|
|
||||||
poweroff = ["systemctl" "poweroff"];
|
|
||||||
};
|
|
||||||
GTK = {
|
|
||||||
application_prefer_dark_theme = true;
|
|
||||||
theme_name = "Tokyonight-Dark-BL";
|
|
||||||
icon_theme_name = "Papirus-Dark";
|
|
||||||
cursor_theme_name = "Bibata-Modern-Classic";
|
|
||||||
font_name = "Noto Sans 11";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,10 +1,6 @@
|
||||||
{pkgs, ...}: {
|
{pkgs, ...}: {
|
||||||
users = {
|
users = {
|
||||||
defaultUserShell = pkgs.nushell;
|
defaultUserShell = pkgs.nushell;
|
||||||
extraUsers.greeter = {
|
|
||||||
home = "/tmp/greeter-home";
|
|
||||||
createHome = true;
|
|
||||||
};
|
|
||||||
users.notoh = {
|
users.notoh = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
uid = 1000;
|
uid = 1000;
|
||||||
|
|
Loading…
Reference in a new issue