diff --git a/README.md b/README.md index e16a312a..7011ff26 100644 --- a/README.md +++ b/README.md @@ -33,6 +33,9 @@ mount /dev/disk/by-label/nixos /mnt mkdir -p /mnt/boot mount /dev/disk/by-label/boot /mnt/boot nixos-generate-config --root /mnt +``` + +```bash nixos-install ``` diff --git a/nixos/bootstrap-livecd.sh b/nixos/bootstrap-livecd.sh deleted file mode 100755 index 027ad9d0..00000000 --- a/nixos/bootstrap-livecd.sh +++ /dev/null @@ -1,10 +0,0 @@ -#!/usr/bin/env bash - -# needs to be launched from nixos livecd -if [[ `hostname` != "nixos" ]]; then - echo "this script can only be ran from NixOS livecd" - exit 1 -fi - -echo "Done. Please reboot now" - diff --git a/nixos/boxes/bootstrap/1.nix b/nixos/boxes/bootstrap/1.nix new file mode 100644 index 00000000..4bc55deb --- /dev/null +++ b/nixos/boxes/bootstrap/1.nix @@ -0,0 +1,22 @@ +{ config, pkgs, ... }: +{ + networking.hostName = "fixme"; + + imports = [ + ./hardware-configuration.nix + ../../boot.nix + ../../common.nix + ../../gfx-intel.nix + ../../zerotier.nix + ../../i3 + ../../distributed-builds.nix + ../../gui + ../../git + ../../backups.nix + ]; + + boot.kernelPackages = pkgs.linuxPackages_latest_hardened; + time.timeZone = "Europe/London"; + + fonts.fontconfig.enable = true; +} diff --git a/nixos/boxes/bootstrap/2.nix b/nixos/boxes/bootstrap/2.nix new file mode 100644 index 00000000..987d4d84 --- /dev/null +++ b/nixos/boxes/bootstrap/2.nix @@ -0,0 +1,33 @@ +{ config, pkgs, ... }: +{ + networking.hostName = "fixme"; + + imports = [ + + ./hardware-configuration.nix + ../../boot.nix + ../../common.nix + ../../gfx-intel.nix + ../../zerotier.nix + ../../i3 + ../../distributed-builds.nix + ../../gui + ../../git + ../../backups.nix + ]; + + boot.kernelPackages = pkgs.linuxPackages_latest_hardened; + time.timeZone = "Europe/London"; + + fonts.fontconfig.enable = true; + home-manager.users.cyryl = {...}: { + imports = [ + ../../home-manager + ]; + home.stateVersion = config.system.stateVersion; + + nixpkgs.overlays = config.nixpkgs.overlays; + nixpkgs.config = config.nixpkgs.config; + }; + +}