diff --git a/README.org b/README.org index 75f13c7..96ea9df 100644 --- a/README.org +++ b/README.org @@ -77,9 +77,14 @@ Syncing disks. 3.3 Create the swap partition > sudo mkswap <> -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 <> --no-filesystems +6. Install nixos! +> sudo nixos-install --impure --flake .#reykjavik diff --git a/flake.nix b/flake.nix index cb72bb6..f6dd3ba 100644 --- a/flake.nix +++ b/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 + ]; + }; + } + + ]; + }; + }; }; } diff --git a/home/hosts/reykjavik.nix b/home/hosts/reykjavik.nix new file mode 100644 index 0000000..f92b9b8 --- /dev/null +++ b/home/hosts/reykjavik.nix @@ -0,0 +1,11 @@ +{ ... }: + +{ + home.stateVersion = "22.05"; + + samfelag = { + profiles = { + desktop.enable = true; + }; + }; +} diff --git a/system/hosts/reykjavik/default.nix b/system/hosts/reykjavik/default.nix index d7cd286..ae8ef0f 100644 --- a/system/hosts/reykjavik/default.nix +++ b/system/hosts/reykjavik/default.nix @@ -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 -----------------------------------