diff options
| author | Akshay Nair <phenax5@gmail.com> | 2020-12-21 14:01:44 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2020-12-21 14:05:11 +0530 |
| commit | 810a3e60ca64e18a11b55ec7e1c2d85e56e51bd5 (patch) | |
| tree | 376e6092fae47ff8479113b84c87a313ec00fb11 | |
| parent | a88e73b69280b890f399596133a7e432e87f5102 (diff) | |
| download | nixos-config-810a3e60ca64e18a11b55ec7e1c2d85e56e51bd5.tar.gz nixos-config-810a3e60ca64e18a11b55ec7e1c2d85e56e51bd5.zip | |
Autologin setup
Diffstat (limited to '')
| -rw-r--r-- | configuration.nix | 40 |
1 files changed, 38 insertions, 2 deletions
diff --git a/configuration.nix b/configuration.nix index dfabb35..c2e7c63 100644 --- a/configuration.nix +++ b/configuration.nix @@ -55,14 +55,51 @@ in { loginShellInit = '' setup_dwm() { echo "~/nixos/external/xconfig/init.sh; ${windowManagers.dwm}" > ~/.xinitrc; + sleep 0.2; } case "$(tty)" in /dev/tty1) setup_dwm && startx ;; - *) echo "No tty for u" ;; + *) echo "Only tty for you, $(tty)" ;; esac; ''; }; + services = { + mingetty = { + autologinUser = "imsohexy"; + helpLine = ""; + greetingLine = let + c1 = "\\e{lightblue}"; + c2 = "\\e{lightcyan}"; + res = "\\e{reset}"; + in '' + +${c1} ▗▄▄▄ ${c2}▗▄▄▄▄ ▄▄▄▖${res} +${c1} ▜███▙ ${c2}▜███▙ ▟███▛${res} ${c1}TTY:${res} \e{bold}\l${res} +${c1} ▜███▙ ${c2}▜███▙▟███▛${res} ${c2}Time:${res} \e{halfbright}\d \t${res} +${c1} ▜███▙ ${c2}▜██████▛${res} ${c2}Distr${res} \e{halfbright}\S{PRETTY_NAME} \m${res} +${c1} ▟█████████████████▙ ${c2}▜████▛ ${c1}▟▙${res} ${c2}Kernal:${res} \e{halfbright}\s \r${res} +${c1} ▟███████████████████▙ ${c2}▜███▙ ${c1}▟██▙${res} ${c2}WM:${res} \e{halfbright}dwm${res} +${c1} ▄▄▄▄▖ ▜███▙ ${c1}▟███▛${res} +${c1} ▟███▛ ▜██▛ ${c1}▟███▛${res} +${c1} ▟███▛ ▜▛ ${c1}▟███▛${res} +${c1}▟███████████▛ ${c1}▟██████████▙${res} +${c1}▜██████████▛ ${c1}▟███████████▛${res} +${c1} ▟███▛ ${c1}▟▙ ▟███▛${res} +${c1} ▟███▛ ${c1}▟██▙ ▟███▛${res} +${c1} ▟███▛ ${c1}▜███▙ ▝▀▀▀▀${res} +${c1} ▜██▛ ${c1}▜███▙ ${c2}▜██████████████████▛${res} +${c1} ▜▛ ${c1}▟████▙ ${c2}▜████████████████▛${res} +${c1} ▟██████▙ ${c2}▜███▙${res} +${c1} ▟███▛▜███▙ ${c2}▜███▙${res} +${c1} ▟███▛ ▜███▙ ${c2}▜███▙${res} +${c1} ▝▀▀▀ ▀▀▀▀▘ ${c2}▀▀▀▘${res} + + + +\e{bold}What's the password, dipshit?\e{reset}''; + }; + }; # X11 config services.xserver = { @@ -133,4 +170,3 @@ in { # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html). system.stateVersion = "20.09"; # Did you read the comment? } - |
