diff --git a/machines/odin/configuration.nix b/machines/odin/configuration.nix index 5ae0038..f45460e 100644 --- a/machines/odin/configuration.nix +++ b/machines/odin/configuration.nix @@ -94,6 +94,28 @@ hardware.enableAllFirmware = true; + users.users.consoledash = { + isSystemUser = true; + home = "/var/lib/consoledash"; + group = "consoledash"; + createHome = true; + # Stole this from here: + # https://github.com/mcdonc/.nixconfig/blob/66f427c029eb673c44bb7df919b78485ce3e8b01/videos/restricteduser/script.rst + # shell = + # let + # rbash = pkgs.runCommandNoCC "rbash-${pkgs.bashInteractive.version}" { } '' + # mkdir -p $out/bin + # ln -s ${pkgs.bashInteractive}/bin/bash $out/bin/rbash + # ''; + + # in + # "${rbash}/bin/rbash"; + shell = "${pkgs.glances}/bin/glances"; + ignoreShellProgramCheck = true; + hashedPassword = null; + }; + users.groups.consoledash = { }; + programs = { nix-ld = { enable = true; @@ -102,6 +124,7 @@ }; services = { + getty.autologinUser = "consoledash"; openssh.enable = true; lvm = { enable = true;