mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-12-11 17:31:58 +01:00
30 lines
674 B
Nix
30 lines
674 B
Nix
|
{
|
||
|
inputs',
|
||
|
lib,
|
||
|
...
|
||
|
}: let
|
||
|
inherit
|
||
|
(lib)
|
||
|
mkDefault
|
||
|
mkImageMediaOverride
|
||
|
;
|
||
|
in {
|
||
|
imports = [
|
||
|
"${inputs'.nixpkgs-stable}/nixos/modules/virtualisation/qemu-vm.nix"
|
||
|
];
|
||
|
services.getty.autologinUser = "nixos";
|
||
|
users.users.nixos = {
|
||
|
isNormalUser = true;
|
||
|
extraGroups = ["wheel" "video"];
|
||
|
# Allow the graphical user to login without password
|
||
|
initialHashedPassword = "";
|
||
|
};
|
||
|
# Allow the user to log in as root without a password.
|
||
|
users.users.root.initialHashedPassword = "";
|
||
|
# Allow passwordless sudo from nixos user
|
||
|
security.sudo = {
|
||
|
enable = mkDefault true;
|
||
|
wheelNeedsPassword = mkImageMediaOverride false;
|
||
|
};
|
||
|
}
|