Move everything off of Ansible
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
{
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
#PROVIDER_PLACEHOLDER
|
||||
];
|
||||
|
||||
# Packages installed on the whole system
|
||||
@@ -17,8 +18,10 @@
|
||||
#xserver.enable = true;
|
||||
};
|
||||
# User setup
|
||||
users.groups.vagrant = {};
|
||||
users.users.vagrant = {
|
||||
isNormalUser = true;
|
||||
group = "vagrant";
|
||||
extraGroups = [ "wheel" ];
|
||||
password = "vagrant";
|
||||
};
|
||||
|
||||
@@ -5,11 +5,6 @@ set -ex
|
||||
echo "vagrant:vagrant" | chpasswd
|
||||
echo "root:vagrant" | chpasswd
|
||||
|
||||
# Configure vagrant user's SSH key
|
||||
mkdir -m 0700 -p ~vagrant/.ssh
|
||||
curl -o /home/vagrant/.ssh/authorized_keys https://raw.githubusercontent.com/hashicorp/vagrant/master/keys/vagrant.pub
|
||||
chmod 600 ~vagrant/.ssh/authorized_keys
|
||||
|
||||
# Set ownership of things vagrant should own
|
||||
chown -R vagrant:wheel ~vagrant/
|
||||
chown -R vagrant:vagrant ~vagrant/
|
||||
chown -R vagrant:wheel /etc/nixos
|
||||
|
||||
Reference in New Issue
Block a user