1
Fork 0

Working quietboot? (kind of)

This commit is contained in:
Matei Adriel 2023-08-06 18:28:34 +03:00
parent c8eef155e5
commit e63d8b32f6
No known key found for this signature in database
5 changed files with 14 additions and 24 deletions

View file

@ -16,7 +16,7 @@ let
./fish.nix
./locale.nix
./wireless
./tailscale.nix
# ./tailscale.nix
../../../../common
];
in

View file

@ -1,28 +1,14 @@
{ config, lib, pkgs, ... }:
let
# [Gtkgreet](https://git.sr.ht/~kennylevinsen/gtkgreet) — greetd greeter of choice
gtkgreet = lib.getExe pkgs.greetd.gtkgreet;
# [Cage](https://github.com/cage-kiosk/cage) — wayland kiosk
cage = lib.getExe pkgs.cage;
dbus-run-session = "${pkgs.dbus}/bin/dbus-run-session";
kiosk = command:
"${dbus-run-session} ${cage} -s -- ${command}";
background = ../../../../common/themes/wallpapers/eye.png;
in
{
services.greetd = {
enable = true;
vt = 1;
settings = {
default_session = {
# command = kiosk "${gtkgreet} -b ${background}";
command = ''
${lib.getExe pkgs.greetd.tuigreet} \
-c ${lib.getExe config.programs.hyprland.package} \
-g "() Welcome to tethys!" \
-g " (.>_>.) Welcome to tethys! (.<_<.)" \
--remember
--asterisks
'';

View file

@ -6,19 +6,20 @@
theme = "cuts_alt";
};
console = {
useXkbConfig = true;
earlySetup = false;
};
boot = {
# See https://search.nixos.org/options?show=boot.initrd.verbose&query=boot.initrd.verbose
kernelParams = [
"quiet"
"splash"
"boot.shell_on_fail"
"i915.fastboot=1"
"loglevel=3"
"rd.systemd.show_status=false"
"rd.udev.log_level=3"
"udev.log_priority=3"
"vt.global_cursor_default=0"
"systemd.show_status=auto"
"udev.log_level=3"
"rd.udev.log_level=3"
"vt.global_cursor_default=0"
];
consoleLogLevel = 0;
initrd.verbose = false;

View file

@ -1,6 +1,8 @@
{ inputs, ... }: {
imports = [ inputs.grub2-themes.nixosModules.default ];
boot.initrd.systemd.enable = true;
# Defined [here](https://github.com/vinceliuice/grub2-themes/blob/master/flake.nix#L11)
boot.loader.grub2-theme = {
enable = true;

View file

@ -11,6 +11,7 @@
../common/optional/slambda.nix
../common/optional/xdg-portal.nix
../common/optional/hyprland.nix
../common/optional/quietboot.nix
./services/syncthing.nix
./hardware-configuration.nix