Add bootstrap files

This commit is contained in:
Cyryl Płotnicki 2021-04-11 09:28:06 +01:00
parent c604926bce
commit b89ab18330
4 changed files with 58 additions and 10 deletions

View file

@ -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
```

View file

@ -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"

View 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;
}

View 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;
};
}