Add bootstrap files
This commit is contained in:
parent
c604926bce
commit
b89ab18330
4 changed files with 58 additions and 10 deletions
|
@ -33,6 +33,9 @@ mount /dev/disk/by-label/nixos /mnt
|
||||||
mkdir -p /mnt/boot
|
mkdir -p /mnt/boot
|
||||||
mount /dev/disk/by-label/boot /mnt/boot
|
mount /dev/disk/by-label/boot /mnt/boot
|
||||||
nixos-generate-config --root /mnt
|
nixos-generate-config --root /mnt
|
||||||
|
```
|
||||||
|
|
||||||
|
```bash
|
||||||
nixos-install
|
nixos-install
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -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"
|
|
||||||
|
|
22
nixos/boxes/bootstrap/1.nix
Normal file
22
nixos/boxes/bootstrap/1.nix
Normal file
|
@ -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;
|
||||||
|
}
|
33
nixos/boxes/bootstrap/2.nix
Normal file
33
nixos/boxes/bootstrap/2.nix
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
{ config, pkgs, ... }:
|
||||||
|
{
|
||||||
|
networking.hostName = "fixme";
|
||||||
|
|
||||||
|
imports = [
|
||||||
|
<home-manager/nixos>
|
||||||
|
./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;
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in a new issue