From 4bbe4ecb4fe61275640513a03a4a4fa4746193fe Mon Sep 17 00:00:00 2001 From: Linnnus Date: Sat, 15 Feb 2025 10:37:08 +0100 Subject: muhammed/dev-vm: Add development VM --- hosts/muhammed/dev-vm/configuration/user.nix | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 hosts/muhammed/dev-vm/configuration/user.nix (limited to 'hosts/muhammed/dev-vm/configuration/user.nix') diff --git a/hosts/muhammed/dev-vm/configuration/user.nix b/hosts/muhammed/dev-vm/configuration/user.nix new file mode 100644 index 0000000..bf2b93f --- /dev/null +++ b/hosts/muhammed/dev-vm/configuration/user.nix @@ -0,0 +1,23 @@ +{ + # Register the user which we will be logging into from the host. + users.users.linus = { + isNormalUser = true; + password = "diller"; # Don't care. No security implications. + extraGroups = ["wheel"]; + }; + + home-manager.users.linus = { + imports = [ + ../../../../shared/home-manager/development-full + ]; + home.stateVersion = "24.05"; + }; + + # Allow passwordless sudo for easy use. We don't have to be too worried about wrecking the system. + security.sudo.extraRules = [ + { + users = ["linus"]; + commands = ["ALL"]; + } + ]; +} -- cgit v1.2.3