mirror of
https://github.com/Theaninova/TheaninovOS.git
synced 2025-12-11 02:56:27 +00:00
update system
This commit is contained in:
@@ -48,7 +48,7 @@
|
|||||||
rastertokpsl-re = prev.callPackage ./overlays/rastertokpsl-re { };
|
rastertokpsl-re = prev.callPackage ./overlays/rastertokpsl-re { };
|
||||||
plymouth = prev.plymouth.overrideAttrs (
|
plymouth = prev.plymouth.overrideAttrs (
|
||||||
final: prev: {
|
final: prev: {
|
||||||
patches = prev.patches ++ [ ];
|
patches = prev.patches ++ [ ./overlays/plymouth/drm-close-fb.patch ];
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -68,7 +68,7 @@
|
|||||||
printing = {
|
printing = {
|
||||||
enable = true;
|
enable = true;
|
||||||
drivers = with pkgs; [
|
drivers = with pkgs; [
|
||||||
# rastertokpsl-re
|
rastertokpsl-re
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
kb_variant = osConfig.services.xserver.xkb.variant;
|
kb_variant = osConfig.services.xserver.xkb.variant;
|
||||||
};
|
};
|
||||||
bind = [
|
bind = [
|
||||||
"SUPER,Q,killactive"
|
"SUPER,C,killactive"
|
||||||
"SUPER,P,togglefloating,"
|
"SUPER,P,togglefloating,"
|
||||||
"SUPER,P,pin,"
|
"SUPER,P,pin,"
|
||||||
"SUPER,D,fullscreen,1"
|
"SUPER,D,fullscreen,1"
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
{
|
{
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
|
pkgs,
|
||||||
username,
|
username,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
@@ -25,6 +26,9 @@ in
|
|||||||
kernelParams = [
|
kernelParams = [
|
||||||
"quiet"
|
"quiet"
|
||||||
|
|
||||||
|
#"fbcon=nodefer"
|
||||||
|
#"fbcon=map:123"
|
||||||
|
|
||||||
"rd.udev.log_level=3"
|
"rd.udev.log_level=3"
|
||||||
"rd.systemd.show_status=false"
|
"rd.systemd.show_status=false"
|
||||||
"udev.log_priority=3"
|
"udev.log_priority=3"
|
||||||
@@ -42,20 +46,61 @@ in
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
services.greetd.greeterManagesPlymouth = true;
|
|
||||||
/*
|
|
||||||
systemd.services = {
|
systemd.services = {
|
||||||
plymouth-quit-wait = {
|
plymouth-quit-wait = {
|
||||||
overrideStrategy = "asDropin";
|
after = lib.mkForce [ ];
|
||||||
after = [ "graphical-session.target" ];
|
wantedBy = lib.mkForce [ ];
|
||||||
wantedBy = lib.mkForce [ "graphical-session.target" ];
|
|
||||||
};
|
};
|
||||||
plymouth-quit = {
|
plymouth-quit = {
|
||||||
overrideStrategy = "asDropin";
|
after = lib.mkForce [
|
||||||
after = [ "graphical-session.target" ];
|
"graphical.target"
|
||||||
wantedBy = lib.mkForce [ "graphical-session.target" ];
|
"greetd.service"
|
||||||
|
];
|
||||||
|
wantedBy = lib.mkForce [ "graphical.target" ];
|
||||||
|
serviceConfig = {
|
||||||
|
ExecStart = [
|
||||||
|
""
|
||||||
|
"-${pkgs.plymouth}/bin/plymouth quit --retain-splash"
|
||||||
|
/*
|
||||||
|
"-${
|
||||||
|
(lib.getExe (
|
||||||
|
pkgs.writeShellApplication {
|
||||||
|
name = "plymouth-quit-delayed";
|
||||||
|
text = ''
|
||||||
|
${pkgs.kbd}/bin/chvt 2; ${pkgs.coreutils}/bin/sleep 1; exec ${pkgs.plymouth}/bin/plymouth quit --retain-splash
|
||||||
|
'';
|
||||||
|
}
|
||||||
|
))
|
||||||
|
}"
|
||||||
|
*/
|
||||||
|
];
|
||||||
|
TTYVTDisallocate = true;
|
||||||
};
|
};
|
||||||
|
/*
|
||||||
|
serviceConfig = {
|
||||||
|
Type = "forking";
|
||||||
|
ExecStart = [
|
||||||
|
""
|
||||||
|
(lib.getExe (
|
||||||
|
pkgs.writeShellApplication {
|
||||||
|
name = "plymouth-quit-delayed";
|
||||||
|
text = ''
|
||||||
|
${pkgs.coreutils}/bin/sleep 5
|
||||||
|
${pkgs.plymouth}/bin/plymouth quit --retain-splash
|
||||||
|
'';
|
||||||
|
}
|
||||||
|
))
|
||||||
|
];
|
||||||
};
|
};
|
||||||
|
/*
|
||||||
|
after = lib.mkForce [ ];
|
||||||
|
wantedBy = lib.mkForce [ ];
|
||||||
|
serviceConfig.ExecStart = [
|
||||||
|
"-${pkgs.coreutils}/bin/sleep 5"
|
||||||
|
"-${pkgs.plymouth}/bin/plymouth quit"
|
||||||
|
];
|
||||||
*/
|
*/
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -26,7 +26,9 @@ in
|
|||||||
wayland.windowManager.hyprland = {
|
wayland.windowManager.hyprland = {
|
||||||
systemd.enable = false;
|
systemd.enable = false;
|
||||||
};
|
};
|
||||||
home.sessionVariables = {
|
home = {
|
||||||
|
packages = with pkgs; [ grim ];
|
||||||
|
sessionVariables = {
|
||||||
NIXOS_OZONE_WL = "1";
|
NIXOS_OZONE_WL = "1";
|
||||||
GDK_BACKEND = "wayland,x11,*";
|
GDK_BACKEND = "wayland,x11,*";
|
||||||
QT_QPA_PLATFORM = "wayland;xcb";
|
QT_QPA_PLATFORM = "wayland;xcb";
|
||||||
@@ -34,6 +36,7 @@ in
|
|||||||
SDL_VIDEODRIVER = "wayland";
|
SDL_VIDEODRIVER = "wayland";
|
||||||
CLUTTER_BACKEND = "wayland";
|
CLUTTER_BACKEND = "wayland";
|
||||||
};
|
};
|
||||||
|
};
|
||||||
xdg.configFile."uwsm/env".source = pkgs.writeText "env" (
|
xdg.configFile."uwsm/env".source = pkgs.writeText "env" (
|
||||||
lib.strings.concatLines (
|
lib.strings.concatLines (
|
||||||
lib.attrsets.mapAttrsToList (
|
lib.attrsets.mapAttrsToList (
|
||||||
@@ -62,15 +65,17 @@ in
|
|||||||
after = [ "network-online.target" ];
|
after = [ "network-online.target" ];
|
||||||
wants = [ "network-online.target" ];
|
wants = [ "network-online.target" ];
|
||||||
};
|
};
|
||||||
|
/*
|
||||||
greetd.serviceConfig = {
|
greetd.serviceConfig = {
|
||||||
Type = "idle";
|
Type = "idle";
|
||||||
StandardInput = "tty";
|
StandardInput = "tty";
|
||||||
StandardOutput = "journal";
|
StandardOutput = "journal";
|
||||||
StandardError = "journal";
|
StandardError = "journal";
|
||||||
TTYReset = false;
|
TTYReset = "yes";
|
||||||
TTYVHangup = false;
|
TTYVHangup = "no";
|
||||||
TTYVTDisallocate = false;
|
TTYVTDisallocate = "no";
|
||||||
};
|
};
|
||||||
|
*/
|
||||||
/*
|
/*
|
||||||
"uwsm-display-manager" = {
|
"uwsm-display-manager" = {
|
||||||
description = "UWSM Display Manager";
|
description = "UWSM Display Manager";
|
||||||
@@ -93,19 +98,25 @@ in
|
|||||||
};
|
};
|
||||||
restartIfChanged = false;
|
restartIfChanged = false;
|
||||||
script = ''
|
script = ''
|
||||||
${pkgs.sudo}/bin/sudo -u ${username} --login uwsm start hyprland-uwsm.desktop
|
${pkgs.sudo}/bin/sudo -u ${username} --login ${
|
||||||
|
lib.getExe (
|
||||||
|
pkgs.writeShellApplication {
|
||||||
|
name = "start-hyprland";
|
||||||
|
text = ''
|
||||||
|
${pkgs.kbd}/bin/chvt 2
|
||||||
|
exec ${pkgs.util-linux}/bin/agetty -o '-p -f -- \u' --noclear --autologin ${username} %I "$TERM" StandardOutput=null StandardError=journal
|
||||||
|
'';
|
||||||
|
}
|
||||||
|
)
|
||||||
|
}
|
||||||
'';
|
'';
|
||||||
environment = {
|
|
||||||
DISPLAY = ":0";
|
|
||||||
# XDG_RUNTIME_DIR = "/run/user/$(id -u ${username})";
|
|
||||||
};
|
|
||||||
aliases = [ "display-manager.service" ];
|
aliases = [ "display-manager.service" ];
|
||||||
};
|
};
|
||||||
*/
|
*/
|
||||||
/*
|
/*
|
||||||
"getty@tty1" = {
|
"hyprtty" = {
|
||||||
overrideStrategy = "asDropin";
|
|
||||||
description = "Start Hyprland";
|
description = "Start Hyprland";
|
||||||
|
conflicts = [ "getty@tty1.service" ];
|
||||||
after = [
|
after = [
|
||||||
"sysinit.target"
|
"sysinit.target"
|
||||||
"initrd-switch-root.service"
|
"initrd-switch-root.service"
|
||||||
@@ -122,9 +133,7 @@ in
|
|||||||
onFailure = [ "emergency.target" ];
|
onFailure = [ "emergency.target" ];
|
||||||
serviceConfig.Type = "simple";
|
serviceConfig.Type = "simple";
|
||||||
preStart = "+${pkgs.coreutils}/bin/rm -f /run/nologin";
|
preStart = "+${pkgs.coreutils}/bin/rm -f /run/nologin";
|
||||||
script = ''
|
script = "-${pkgs.util-linux}/bin/agetty -o '-p -f -- \\u' --noclear --autologin ${username} %I $TERM StandardOutput=null StandardError=journal";
|
||||||
-${pkgs.util-linux}/bin/agetty -o '-p -f -- \u' --noclear --autologin ${username} %I $TERM StandardOutput=null StandardError=journal
|
|
||||||
'';
|
|
||||||
wantedBy = [
|
wantedBy = [
|
||||||
"graphical.target"
|
"graphical.target"
|
||||||
"initrd-switch-root.service"
|
"initrd-switch-root.service"
|
||||||
@@ -163,20 +172,49 @@ in
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
|
seatd = {
|
||||||
|
enable = true;
|
||||||
|
user = username;
|
||||||
|
};
|
||||||
|
/*
|
||||||
|
getty = {
|
||||||
|
autologinUser = username;
|
||||||
|
extraArgs = [ "--noclear" ];
|
||||||
|
};
|
||||||
|
*/
|
||||||
|
kmscon = {
|
||||||
|
enable = true;
|
||||||
|
hwRender = true;
|
||||||
|
};
|
||||||
greetd = {
|
greetd = {
|
||||||
enable = true;
|
enable = true;
|
||||||
greeterManagesPlymouth = false;
|
greeterManagesPlymouth = false;
|
||||||
vt = 2;
|
#vt = 1;
|
||||||
settings = {
|
settings = {
|
||||||
initial_session = {
|
initial_session = {
|
||||||
command = "uwsm start hyprland-uwsm.desktop";
|
command = "uwsm start ${pkgs.hyprland}/share/wayland-sessions/hyprland.desktop" # > ${homeConfig.xdg.configHome}/uwsm.log 2> ${homeConfig.xdg.configHome}/uwsm.err"
|
||||||
|
/*
|
||||||
|
lib.getExe (
|
||||||
|
pkgs.writeShellApplication {
|
||||||
|
name = "start-hyprland";
|
||||||
|
text = ''
|
||||||
|
chvt 1
|
||||||
|
exec uwsm start hyprland-uwsm.desktop > ${homeConfig.xdg.configHome}/uwsm.log 2> ${homeConfig.xdg.configHome}/uwsm.err
|
||||||
|
'';
|
||||||
|
}
|
||||||
|
)
|
||||||
|
*/
|
||||||
|
;
|
||||||
user = username;
|
user = username;
|
||||||
};
|
};
|
||||||
default_session = {
|
default_session = {
|
||||||
command = "${lib.getExe pkgs.greetd.tuigreet} --asterisks --remember --user-menu --cmd 'uwsm start hyprland-uwsm.desktop'";
|
command = "${lib.getExe pkgs.greetd.tuigreet} --asterisks --remember --user-menu --cmd 'uwsm start hyprland-uwsm.desktop'";
|
||||||
user = username;
|
user = username;
|
||||||
};
|
};
|
||||||
terminal.switch = false;
|
terminal = {
|
||||||
|
#vt = lib.mkForce 2;
|
||||||
|
#switch = false;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
dbus = {
|
dbus = {
|
||||||
|
|||||||
@@ -18,6 +18,7 @@ stdenv.mkDerivation {
|
|||||||
cmake
|
cmake
|
||||||
cups
|
cups
|
||||||
];
|
];
|
||||||
|
cmakeFlags = [ "-DCMAKE_C_FLAGS=-D_GNU_SOURCE" ];
|
||||||
nativeBuildInputs = [ patchPpdFilesHook ];
|
nativeBuildInputs = [ patchPpdFilesHook ];
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
runHook preInstall
|
runHook preInstall
|
||||||
|
|||||||
Reference in New Issue
Block a user