diff --git a/config/config/crest_iv_black-cut.jpg b/config/config/crest_iv_black-cut.jpg new file mode 100644 index 0000000..d2fde55 Binary files /dev/null and b/config/config/crest_iv_black-cut.jpg differ diff --git a/config/home.nix b/config/home.nix index 2789933..33fc85b 100644 --- a/config/home.nix +++ b/config/home.nix @@ -109,6 +109,12 @@ in dash-to-dock.extensionUuid ]; }; + "org/gnome/desktop/background" = { + picture-uri = "file:///etc/nixos/config/crest_iv_black-cut.jpg"; + picture-uri-dark = "file:///etc/nixos/config/crest_iv_black-cut.jpg"; + picture-options = "centered"; + primary-color = "#000000"; + }; "org/gnome/shell/extensions/dash-to-dock" = { show-mounts = false; show-trash = false; diff --git a/config/vm-guest.nix b/config/vm-guest.nix index 5d7d215..9e8266f 100644 --- a/config/vm-guest.nix +++ b/config/vm-guest.nix @@ -32,6 +32,10 @@ in # Enable the OpenSSH daemon. services.openssh.enable = true; + users.users.sebastian.openssh.authorizedKeys.keys = [ + "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIL/i/b9o5LKRr+h7vwq1dLCQ+vz9DTf4EvaLeCRUxtIZ sebastian@cesium" + ]; + # Symlink für Autostart environment.etc."xdg/autostart/spice-vdagent-custom.desktop".source = "${spice-vdagent-desktop}/share/applications/spice-vdagent-custom.desktop"; diff --git a/scripts/minimal-install.sh b/scripts/minimal-install.sh index 179cb28..01ce8dd 100755 --- a/scripts/minimal-install.sh +++ b/scripts/minimal-install.sh @@ -58,11 +58,16 @@ mount /dev/disk/by-label/nixos /mnt mkdir /mnt/boot mount -o umask=077 /dev/disk/by-label/boot /mnt/boot +# Activate swap +swapon /dev/disk/by-label/swap + mkdir -p /mnt/home mount /dev/disk/by-label/home /mnt/home -# Activate swap -swapon /dev/disk/by-label/swap + +echo "If you want to configure additional partitions, this is the right moment." +echo "Switch to console with [Ctrl + Z] and return with [fg] continue after that." +read -p "Continue?" nixos-generate-config --root /mnt @@ -70,8 +75,8 @@ nixos-install # If root password wasn't set because the installation needed to be restarted. -read -p "Set Root-password with nixos-enter? (j/N): " answer -if [ "$answer" = "j" ] || [ "$answer" = "J" ]; then +read -p "Set Root-password with nixos-enter? (j/N): " ANSWER +if [ "${ANSWER}" = "j" ] || [ "${ANSWER}" = "J" ]; then nixos-enter --root '/mnt' passwd fi diff --git a/scripts/post-install.sh b/scripts/post-install.sh index faad3fa..191f28c 100755 --- a/scripts/post-install.sh +++ b/scripts/post-install.sh @@ -6,10 +6,10 @@ cp -r ~/nixos-cesium/config/* /etc/nixos/ # VM module activation echo "" -echo "Activate a VM module?" -echo " 1) vm-guest.nix (VM runs inside a hypervisor)" -echo " 2) vm-host.nix (System runs VMs via libvirtd)" -echo " n) None" +echo "Select what configuration to include?" +echo " 1) vm-guest.nix (VM runs inside a hypervisor)" +echo " 2) vm-host.nix (System runs VMs via libvirtd)" +echo " n) None" read -p "Selection [n]: " VM_CHOICE VM_CHOICE="${VM_CHOICE:-n}"