Fixed reykyavik installation
This commit is contained in:
@@ -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
|
||||
|
||||
25
flake.nix
25
flake.nix
@@ -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
11
home/hosts/reykjavik.nix
Normal file
@@ -0,0 +1,11 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
home.stateVersion = "22.05";
|
||||
|
||||
samfelag = {
|
||||
profiles = {
|
||||
desktop.enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -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 -----------------------------------
|
||||
|
||||
|
||||
Reference in New Issue
Block a user