diff --git a/configuration.nix b/configuration.nix index 99ffdf2..5f854bf 100644 --- a/configuration.nix +++ b/configuration.nix @@ -45,6 +45,7 @@ in { description = "Audrey Dutcher"; isNormalUser = true; extraGroups = [ "wheel" "docker" ]; + openssh.authorizedKeys.keyFiles = [ ./dotfiles/authorized_keys ]; }; environment.systemPackages = with pkgs; [ diff --git a/dotfiles/authorized_keys b/dotfiles/authorized_keys new file mode 100644 index 0000000..2a278b7 --- /dev/null +++ b/dotfiles/authorized_keys @@ -0,0 +1,2 @@ +ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDeeSDW2s8awLKVsdqalGrSWJ0zHdLXP8PE6MyFglGITyrjm5SKnyCEYL1wS6W/egJT2trNPwWl22D3UKYgWyzi6HLZAvJwT+eoyo1Ya3V+k2Do3AU0/LeJ0xjx9kO6E0IL++ozqpFPoT+OAmw6cZ3Eyir3VjTOdbsUz7QTPFHhuwJ37GAshpc6C5I/cralFs5NwRFpI2j9j6pu0RJFm2QBqG1zY6qIjFt5l9LuY5aOQBYSaFfmMa8BVJo6ZFQxySv+Xo51zEch2Nv/efXmiuJoCyUcrb9fTYRmtFchl/XAd+8SyvuxTIOYAhWpBgK8pK7i7wTxDcz4Lbi7iJKHYTX4hqw0qKPjF+K+XGVYqw2Cz38W861dx5bUqBwQP+4OsE/+/ThTZDe1dfwJumJgaUWU6Mnr1EYwEefGQZlU4lxvy6DyCYd6Y5s9KmPNSlxXQsArrhWymmfKELN+aRGMys/KnWwFAHnhGC6J1uBQjT/jsTXFXtsqHuICBTsCo5JhiIk= audrey@dandelion +ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDhSwzhg87H3auhS0ODXNHW5pqw7Re0FABfsN7wxDgz0P8F93emEW1eAY7WJT3N7wxqNui0vkpxVFcgqzFTalao+EMvru/8HI18SCX1xzmn1HgSb7gKzKerKMO8E9JO+VJkp9n7eKyWtxsj1uX3YYPsaGw/16FUFlRk4kiBkv01h/mA5R4+J4U67df1/Cwx3ryIDSjqm5Zkbp39rYmwBkkodCs4cqiyyZV5ZGA+RHll0b77POkbElaAORgdL41YmWyBOJo3oxK5D2Mei0WfYiGZtJ3XbrmhBO9bz/eep7wzWXkwx1Oy77jFtKO3tNSB972yd2uJqEGuMa3AEFXGIskB audrey@violet diff --git a/sites/sunflower/configuration.nix b/sites/sunflower/configuration.nix new file mode 100644 index 0000000..f53c7be --- /dev/null +++ b/sites/sunflower/configuration.nix @@ -0,0 +1,20 @@ +{ config, lib, pkgs, ... }: + +{ + imports = [ ./hardware-configuration.nix ]; + + boot.initrd.supportedFilesystems = [ "zfs" ]; + boot.initrd.systemd.enable = true; + services.zfs.autoScrub.enable = true; + services.zfs.trim.enable = true; + + networking.hostName = "sunflower"; + networking.hostId = "77d68c52"; + + # Set your time zone. + time.timeZone = "America/Phoenix"; + + system.stateVersion = "24.11"; + + security.sudo.wheelNeedsPassword = false; +} diff --git a/sites/sunflower/hardware-configuration.nix b/sites/sunflower/hardware-configuration.nix new file mode 100644 index 0000000..a5fd697 --- /dev/null +++ b/sites/sunflower/hardware-configuration.nix @@ -0,0 +1,52 @@ +# Do not modify this file! It was generated by ‘nixos-generate-config’ +# and may be overwritten by future invocations. Please make changes +# to /etc/nixos/configuration.nix instead. +{ config, lib, pkgs, modulesPath, ... }: + +{ + imports = + [ (modulesPath + "/profiles/qemu-guest.nix") + ]; + + boot.initrd.availableKernelModules = [ "ahci" "xhci_pci" "virtio_pci" "virtio_scsi" "sd_mod" "sr_mod" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ ]; + boot.extraModulePackages = [ ]; + + fileSystems."/" = + { device = "system/local/root"; + fsType = "zfs"; + }; + + fileSystems."/nix" = + { device = "system/local/nix"; + fsType = "zfs"; + }; + + fileSystems."/var" = + { device = "system/local/var"; + fsType = "zfs"; + }; + + fileSystems."/home" = + { device = "system/home"; + fsType = "zfs"; + }; + + fileSystems."/boot/efi" = + { device = "/dev/disk/by-uuid/564D-E28E"; + fsType = "vfat"; + options = [ "fmask=0022" "dmask=0022" ]; + }; + + swapDevices = [ ]; + + # Enables DHCP on each ethernet and wireless interface. In case of scripted networking + # (the default) this is the recommended approach. When using systemd-networkd it's + # still possible to use this option, but it's recommended to use it in conjunction + # with explicit per-interface declarations with `networking.interfaces..useDHCP`. + networking.useDHCP = lib.mkDefault true; + # networking.interfaces.enp1s0.useDHCP = lib.mkDefault true; + + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; +}