Fixed reykyavik installation

This commit is contained in:
Marc Sastre Rienitz
2022-11-02 22:51:28 +00:00
parent c1bd2ea1d7
commit fa8a0e5a25
4 changed files with 43 additions and 4 deletions

View File

@@ -77,9 +77,14 @@ Syncing disks.
3.3 Create the swap partition
> sudo mkswap <<device: e.g. /dev/nvme0n1p3>> -L swap
4. Create the host nix configuration
4. Mount the filesystems
>
5. Create the host nix configuration
If the host is not present under system/hosts, create a new folder for the host.
Generate the hardware configuration file, you can use nixos-generate-config as a base:
> nixos-generate-config --dir <<host directory>> --no-filesystems
6. Install nixos!
> sudo nixos-install --impure --flake .#reykjavik

View File

@@ -47,6 +47,31 @@
];
};
# - Reykjavik ----------------------------
reykjavik = lib.nixosSystem {
inherit system;
modules = [
./system/modules
./system/profiles
./system/hosts/reykjavik
home-manager.nixosModules.home-manager {
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.marc = {
imports = [
./home/modules
./home/profiles
./home/hosts/reykjavik.nix
];
};
}
];
};
};
};
}

11
home/hosts/reykjavik.nix Normal file
View File

@@ -0,0 +1,11 @@
{ ... }:
{
home.stateVersion = "22.05";
samfelag = {
profiles = {
desktop.enable = true;
};
};
}

View File

@@ -15,9 +15,7 @@
# - Bootloader ---------------------------------
boot.loader.grub.enable = true;
boot.loader.grub.device = "/dev/nvme0n1";
boot.loader.grub.useOSProber = true;
boot.loader.systemd-boot.enable = true;
# - Services -----------------------------------