This commit is contained in:
Kristian Krsnik 2024-04-15 19:21:18 +02:00
parent 23141dddec
commit a78d52be94
Signed by: Kristian
GPG Key ID: FD1330AC9F909E85
3 changed files with 13 additions and 31 deletions

View File

@ -12,20 +12,3 @@ cd ..
mv nixos /persist mv nixos /persist
cd /persist/nixos cd /persist/nixos
``` ```
<!-- While formatting you will be asked for a password which is used for disk encryption with LUKS.
Make sure you have the correct keyboard layout set.
## [Optional] Generate Hardware Configuration (for new Systems)
```txt
sudo nixos-generate-config --no-filesystems --force --root /mnt ./system
```
## Install from Flake
```txt
nix-shell -p git
sudo nixos-install --no-root-password --root /mnt --flake .#
``` -->

View File

@ -7,11 +7,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1712356478, "lastModified": 1713152224,
"narHash": "sha256-kTcEtrQIRnexu5lAbLsmUcfR2CrmsACF1s3ZFw1NEVA=", "narHash": "sha256-k1aV06cotPwWO3FW+ho+dEoGjxNM303+UmhiG2o6XPs=",
"owner": "nix-community", "owner": "nix-community",
"repo": "disko", "repo": "disko",
"rev": "0a17298c0d96190ef3be729d594ba202b9c53beb", "rev": "bb5ba68ebb73b5ca7996b64e1457fe885891e78e",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -37,11 +37,11 @@
}, },
"nixos-hardware": { "nixos-hardware": {
"locked": { "locked": {
"lastModified": 1712324865, "lastModified": 1712909959,
"narHash": "sha256-+BatEWd4HlMeK7Ora+gYIkarjxFVCg9oKrIeybHIIX4=", "narHash": "sha256-7/5ubuwdEbQ7Z+Vqd4u0mM5L2VMNDsBh54visp27CtQ=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixos-hardware", "repo": "nixos-hardware",
"rev": "f3b959627bca46a9f7052b8fbc464b8323e68c2c", "rev": "f58b25254be441cd2a9b4b444ed83f1e51244f1f",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -53,11 +53,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1712437997, "lastModified": 1713013257,
"narHash": "sha256-g0whLLwRvgO2FsyhY8fNk+TWenS3jg5UdlWL4uqgFeo=", "narHash": "sha256-ZEfGB3YCBVggvk0BQIqVY7J8XF/9jxQ68fCca6nib+8=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "e38d7cb66ea4f7a0eb6681920615dfcc30fc2920", "rev": "90055d5e616bd943795d38808c94dbf0dd35abe8",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -69,11 +69,11 @@
}, },
"nixpkgs-unstable": { "nixpkgs-unstable": {
"locked": { "locked": {
"lastModified": 1712439257, "lastModified": 1712963716,
"narHash": "sha256-aSpiNepFOMk9932HOax0XwNxbA38GOUVOiXfUVPOrck=", "narHash": "sha256-WKm9CvgCldeIVvRz87iOMi8CFVB1apJlkUT4GGvA0iM=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "ff0dbd94265ac470dda06a657d5fe49de93b4599", "rev": "cfd6b5fc90b15709b780a5a1619695a88505a176",
"type": "github" "type": "github"
}, },
"original": { "original": {

View File

@ -40,8 +40,7 @@
install = { install = {
program = "${pkgs.writeShellScript "install" '' program = "${pkgs.writeShellScript "install" ''
sudo nixos-generate-config --no-filesystems --force --root /mnt --dir ./system sudo nixos-generate-config --no-filesystems --force --root /mnt --dir ./system
nix develop .# --extra-experimental-features "nix-command flakes sudo nix --experimental-features "nix-command flakes" run github:nix-community/disko/${inputs.disko.rev}#disko-install -- --flake .#nixos --disk main /dev/sda --write-efi-entries
sudo disko-install --flake .#nixos --disk main /dev/sda --write-efi-entries
''}"; ''}";
type = "app"; type = "app";
}; };