From dd076148cc59eb4a613d951e5e0b929c3cb3cbfd Mon Sep 17 00:00:00 2001 From: Joe Mou Date: Tue, 13 Feb 2024 19:50:10 -0500 Subject: Low-level reconfiguration - btrfs subvolumes - hostname - SSH --- hostnix/elmo/configuration.nix | 9 +++++++-- hostnix/elmo/hardware-configuration.nix | 12 ++++++++++++ 2 files changed, 19 insertions(+), 2 deletions(-) (limited to 'hostnix/elmo') diff --git a/hostnix/elmo/configuration.nix b/hostnix/elmo/configuration.nix index 003701f..fe544ed 100644 --- a/hostnix/elmo/configuration.nix +++ b/hostnix/elmo/configuration.nix @@ -14,7 +14,7 @@ boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = true; - networking.hostName = "nixos"; # Define your hostname. + networking.hostName = "elmo"; # Define your hostname. # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant. # Configure network proxy if necessary @@ -78,6 +78,8 @@ # Enable touchpad support (enabled default in most desktopManager). # services.xserver.libinput.enable = true; + security.sudo.wheelNeedsPassword = false; + # Define a user account. Don't forget to set a password with ‘passwd’. users.users.joe = { isNormalUser = true; @@ -87,6 +89,9 @@ firefox # thunderbird ]; + openssh.authorizedKeys.keys = [ + "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDHcqQDnH0LcUWFV+cd9aABfM55+72UAn1ZY5x5bHwPL4IEgT1nagbi1X3FwCJkh2rEcDsHl4FflcNfh+IyU2VyuQfRIXl7CKP040ovXmPVzgU8JiEDrrRebpZ7aHCKk+4Q6cJ8dzAI1sRogVyYrV0hLB4yeMnVexkIcsQMt5pXQ1zodlzHfW1W7OWQDbKjIyh4pv1KJ/IIjiBIt7l+OCqi7wZK4ubmxyMhmZx1xpRC5mz2/29Mpt+1VgCmxC7Hv1SG7yu+U0s4eJ3kbzFKNcZ/bCYqFxK48dT66qhS3qZFg09omumG8IbEUcx+WqM1V7WhiJYig9x5ovmMToQXTJ5uxLtcovnxO/53IgwV7INvmr8+NhD+LlkQfSjjUAW09bhVj9sKIW2bbrIxlOT8z6CQY9zGXNXi8u1oxPt3Q7d3rMxoWhWnr2l3Ok7OIkWooOK3e0NdhgIAxZKlYJAmIYaX391sGTyiuwUy96mg5JcYsLYMfkEg/Sv+2vQp8kkvB0E= joe@sparky" + ]; }; # Allow unfree packages @@ -110,7 +115,7 @@ # List services that you want to enable: # Enable the OpenSSH daemon. - # services.openssh.enable = true; + services.openssh.enable = true; # Open ports in the firewall. # networking.firewall.allowedTCPPorts = [ ... ]; diff --git a/hostnix/elmo/hardware-configuration.nix b/hostnix/elmo/hardware-configuration.nix index be1663c..ad065f6 100644 --- a/hostnix/elmo/hardware-configuration.nix +++ b/hostnix/elmo/hardware-configuration.nix @@ -19,6 +19,18 @@ options = [ "subvol=@" ]; }; + fileSystems."/nix" = + { device = "/dev/disk/by-uuid/d0564e9f-ae39-46e6-a380-9b614da0ec29"; + fsType = "btrfs"; + options = [ "subvol=@nix" ]; + }; + + fileSystems."/home" = + { device = "/dev/disk/by-uuid/d0564e9f-ae39-46e6-a380-9b614da0ec29"; + fsType = "btrfs"; + options = [ "subvol=@home" ]; + }; + fileSystems."/boot" = { device = "/dev/disk/by-uuid/C663-3CFA"; fsType = "vfat"; -- cgit v1.3.1