Skip to content

Commit

Permalink
Update iso and installation instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
DashieTM committed Mar 2, 2025
1 parent bf3230a commit 4c5ebe9
Show file tree
Hide file tree
Showing 5 changed files with 254 additions and 99 deletions.
26 changes: 26 additions & 0 deletions docs/src/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,32 @@ as well as a few tools like gnome-disks, neovim, vscodium, a browser etc.

Alternatively, you can use whatever NixOS installer and just install your config from there, just make sure to set the drive configuration before.

## Commands

First, copy the readonly config from /iso/example-config to a location of your choice.

```sh
cp /iso/example-config ~/config -r
```

Then configure as you please and choose a command below depending on your disk installation variant.

Installation via manual configuration:

```sh
sudo nixos-install --flake <flakelocation>#<hostname> --root <mountpoint>
#example
#nixos-install --flake ~/config#globi --root /mnt
```

Installation via disko:

```sh
sudo disko-install --flake <flakelocation>#<hostname> --disk <disk-name> <disk-device>
#example
#disko-install -- --flake ~/config#globi --disk main /dev/nvme0n1
```

# Modules

This configuration features several modules that can be used as preconfigured "recipies".
Expand Down
24 changes: 16 additions & 8 deletions example/flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,13 @@
description = "some dots";

inputs = {
dashvim.url = "github:DashieTM/DashVim";
hyprland.url = "git+https://github.com/hyprwm/Hyprland?submodules=1";
ironbar.url = "github:JakeStanger/ironbar?ref=3a1c60442382f970cdb7669814b6ef3594d9f048";
anyrun.url = "github:Kirottu/anyrun";
nixpkgs.url = "github:NixOs/nixpkgs/nixos-unstable";
stable.url = "github:NixOs/nixpkgs/nixos-24.05";
dashNix = {
url = "github:DashieTM/DashNix";
inputs = {
nixpkgs.follows = "nixpkgs";
stable.follows = "stable";
dashvim.follows = "dashvim";
hyprland.follows = "hyprland";
ironbar.follows = "ironbar";
anyrun.follows = "anyrun";
};
};
};
Expand All @@ -32,12 +24,28 @@
"https://hyprland.cachix.org"
"https://anyrun.cachix.org"
"https://cache.garnix.io"
"https://oxipaste.cachix.org"
"https://oxinoti.cachix.org"
"https://oxishut.cachix.org"
"https://oxidash.cachix.org"
"https://oxicalc.cachix.org"
"https://hyprdock.cachix.org"
"https://reset.cachix.org"
"https://chaotic-nyx.cachix.org/"
];

extra-trusted-public-keys = [
"hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="
"anyrun.cachix.org-1:pqBobmOjI7nKlsUMV25u9QHa9btJK65/C8vnO3p346s="
"cache.garnix.io:CTFPyKSLcx5RMJKfLo5EEPUObbA78b0YQ2DTCJXqr9g="
"oxipaste.cachix.org-1:n/oA3N3Z+LJP7eIWOwuoLd9QnPyZXqFjLgkahjsdDGc="
"oxinoti.cachix.org-1:dvSoJl2Pjo5HMaNngdBbSaixK9BSf2N8gzjP2MdGvfc="
"oxishut.cachix.org-1:axyAGF3XMh1IyMAW4UMbQCdMNovDH0KH6hqLLRJH8jU="
"oxidash.cachix.org-1:5K2FNHp7AS8VF7LmQkJAUG/dm6UHCz4ngshBVbjFX30="
"oxicalc.cachix.org-1:qF3krFc20tgSmtR/kt6Ku/T5QiG824z79qU5eRCSBTQ="
"hyprdock.cachix.org-1:HaROK3fBvFWIMHZau3Vq1TLwUoJE8yRbGLk0lEGzv3Y="
"reset.cachix.org-1:LfpnUUdG7QM/eOkN7NtA+3+4Ar/UBeYB+3WH+GjP9Xo="
"chaotic-nyx.cachix.org-1:HfnXSw4pj95iI/n17rIDy40agHj12WfF+Gqk6SonIT8="
];
};
}
2 changes: 2 additions & 0 deletions example/hosts/example/configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
mods = {
# default disk config has root home boot and swap partition, overwrite if you want something different
drives = {
# WARNING: Only do this when installing for the first time, as I am not sure if disko would format your disk
variant = "disko";
# default assumes ROOT, BOOT, HOME and SWAP labaled drives exist
# for an example without HOME see below
#defaultDrives.enable = false;
Expand Down
Loading

0 comments on commit 4c5ebe9

Please sign in to comment.