home

My NixOS systems configurations.
Log | Files | Refs | LICENSE

preseed.cfg (3745B)


      1 ### Localization
      2 # Locale sets language and country.
      3 d-i debian-installer/locale string en_US
      4 # Keyboard selection.
      5 d-i keyboard-configuration/layoutcode string fr
      6 d-i keyboard-configuration/modelcode string bepo
      7 d-i keyboard-configuration/variantcode string
      8 
      9 ### Network configuration
     10 # netcfg will choose an interface that has link if possible. This makes it
     11 # skip displaying a list if there is more than one interface.
     12 d-i netcfg/choose_interface select auto
     13 # Any hostname and domain names assigned from dhcp take precedence over
     14 # values set here. However, setting the values still prevents the questions
     15 # from being shown, even if values come from dhcp.
     16 d-i netcfg/get_hostname string ubnt2
     17 d-i netcfg/get_domain string home
     18 # Disable that annoying WEP key dialog.
     19 d-i netcfg/wireless_wep string
     20 
     21 ### Mirror settings
     22 d-i mirror/country string manual
     23 d-i mirror/http/hostname string us.archive.ubuntu.com
     24 d-i mirror/http/directory string /ubuntu
     25 d-i mirror/http/proxy string
     26 
     27 ### Partitioning
     28 # Encrypt your home directory?
     29 d-i user-setup/encrypt-home boolean false
     30 # Alternatively, you can specify a disk to partition. The device name
     31 # can be given in either devfs or traditional non-devfs format.
     32 d-i partman-auto/disk string /dev/vda
     33 # In addition, you'll need to specify the method to use.
     34 # The presently available methods are: "regular", "lvm" and "crypto"
     35 d-i partman-auto/method string regular
     36 # You can choose from any of the predefined partitioning recipes.
     37 d-i partman-auto/choose_recipe select atomic
     38 # This makes partman automatically partition without confirmation, provided
     39 # that you told it what to do using one of the methods above.
     40 d-i partman-partitioning/confirm_write_new_label boolean true
     41 d-i partman/choose_partition select finish
     42 d-i partman/confirm boolean true
     43 d-i partman/confirm_nooverwrite boolean true
     44 
     45 ### Clock and time zone setup
     46 # Controls whether or not the hardware clock is set to UTC.
     47 d-i clock-setup/utc boolean true
     48 # You may set this to any valid setting for $TZ; see the contents of
     49 # /usr/share/zoneinfo/ for valid values.
     50 d-i time/zone string Europe/Paris
     51 
     52 ### Account setup
     53 # Skip creation of a root account (normal user account will be able to
     54 # use sudo).
     55 d-i passwd/root-login boolean false
     56 
     57 # To create a normal user account.
     58 d-i passwd/user-fullname string Vincent
     59 d-i passwd/username string vincent
     60 # Normal user's password, either in clear text
     61 # or encrypted using an MD5 hash.
     62 d-i passwd/user-password-crypted password $6$4Puk4u221EHgeLBK$gVYPwH3b6OW0Ic1aZUNYkSrFcfj6mbgigGenACVUVxnO3V6MKgV0mTq4COZGtoZLdlIhy1ggXLLEZaZT6Fnpm/
     63 
     64 # This is fairly safe to set, it makes grub install automatically to the MBR
     65 # if no other operating system is detected on the machine.
     66 d-i grub-installer/only_debian boolean true
     67 
     68 ### Package selection
     69 d-i tasksel/first multiselect standard
     70 # Individual additional packages to install
     71 d-i pkgsel/include string openssh-server snapd
     72 
     73 ### Finishing up installation
     74 d-i preseed/late_command string \
     75     mkdir -p /target/home/vincent/.ssh; \
     76     wget https://github.com/vdemeester.keys -O /target/home/vincent/.ssh/authorized_keys; \
     77     chown -R 1000 /target/home/vincent/; \
     78     chmod 600 /target/home/vincent/.ssh/authorized_keys; \
     79     mkdir -p /target/root/.ssh; \
     80     cp /target/home/vincent/.ssh/authorized_keys /target/root/.ssh; \
     81     chmod 600 /target/home/vincent/.ssh/authorized_keys; \
     82     echo 'vincent ALL=(ALL) NOPASSWD: ALL' > /target/etc/sudoers.d/vincent ; \
     83     chmod 440 /target/etc/sudoers.d/vincent
     84 ### Finishing up the first stage install
     85 # Avoid that last message about the install being complete.
     86 d-i finish-install/reboot_in_progress note
     87 # How do you want to manage upgrades on this system?
     88 d-i pkgsel/update-policy select none