Compare commits
17 Commits
2faf280893
...
main
Author | SHA1 | Date | |
---|---|---|---|
423d2e9df6
|
|||
915b6bc2a0
|
|||
7b9e16602c
|
|||
e6b547ce9b
|
|||
ea2baddadb
|
|||
7d7bc3cf42
|
|||
d5be56bc0e
|
|||
c6446d24d8
|
|||
dfbfecb127
|
|||
57c2f55072
|
|||
a78d52be94
|
|||
23141dddec
|
|||
8ac593fa84
|
|||
33aa9f1c5a
|
|||
dcd58997c9
|
|||
084017d0ef
|
|||
6494aaf123
|
@ -4,7 +4,7 @@
|
||||
|
||||
```txt
|
||||
`nix-shell -p git`
|
||||
`nix flake new nixos --template git+https://git.krsnik.at/Kristian/impermanence-talk#default --extra-experimental-features "nix-command flakes"`
|
||||
`nix flake new nixos --template git+https://github.com/Krsnik/impermanence#default --extra-experimental-features "nix-command flakes"`
|
||||
`cd nixos`
|
||||
`nix develop --extra-experimental-features "nix-command flakes"`
|
||||
`[CHANGE SETTINGS]`
|
||||
|
@ -1 +0,0 @@
|
||||
,kristian,nixos,09.04.2024 09:22,file:///home/kristian/.config/libreoffice/4;
|
BIN
slides/slides.odp
Normal file
BIN
slides/slides.odp
Normal file
Binary file not shown.
BIN
slides/slides.pdf
Normal file
BIN
slides/slides.pdf
Normal file
Binary file not shown.
Binary file not shown.
@ -3,27 +3,13 @@
|
||||
## Disk Partitioning
|
||||
|
||||
```txt
|
||||
nix flake new nixos --template git+https://git.krsnik.at/Kristian/impermanence-talk --extra-experimental-features "nix-command flakes"
|
||||
sudo loadkeys <keyboard_layout>
|
||||
nix-shell -p git
|
||||
nix flake new nixos --template git+https://git.krsnik.at/Kristian/impermanence-talk --experimental-features "nix-command flakes"
|
||||
cd nixos
|
||||
nix develop --extra-experimental-features "nix-command flakes"
|
||||
sudo disko --mode disko ./systems/disko.nix
|
||||
nix run .#install --experimental-features "nix-command flakes"
|
||||
|
||||
cd ..
|
||||
mv nixos /persist
|
||||
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
|
||||
sudo nixos-install --no-root-password --root /mnt --flake .#
|
||||
```
|
||||
|
@ -33,7 +33,7 @@
|
||||
};
|
||||
};
|
||||
|
||||
services.getty.autoLogin = "demo";
|
||||
services.getty.autologinUser = "demo";
|
||||
console.keyMap = "de";
|
||||
|
||||
time.timeZone = "Europe/Vienna";
|
||||
|
24
template/flake.lock
generated
24
template/flake.lock
generated
@ -7,11 +7,11 @@
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1712356478,
|
||||
"narHash": "sha256-kTcEtrQIRnexu5lAbLsmUcfR2CrmsACF1s3ZFw1NEVA=",
|
||||
"lastModified": 1713152224,
|
||||
"narHash": "sha256-k1aV06cotPwWO3FW+ho+dEoGjxNM303+UmhiG2o6XPs=",
|
||||
"owner": "nix-community",
|
||||
"repo": "disko",
|
||||
"rev": "0a17298c0d96190ef3be729d594ba202b9c53beb",
|
||||
"rev": "bb5ba68ebb73b5ca7996b64e1457fe885891e78e",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@ -37,11 +37,11 @@
|
||||
},
|
||||
"nixos-hardware": {
|
||||
"locked": {
|
||||
"lastModified": 1712324865,
|
||||
"narHash": "sha256-+BatEWd4HlMeK7Ora+gYIkarjxFVCg9oKrIeybHIIX4=",
|
||||
"lastModified": 1712909959,
|
||||
"narHash": "sha256-7/5ubuwdEbQ7Z+Vqd4u0mM5L2VMNDsBh54visp27CtQ=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixos-hardware",
|
||||
"rev": "f3b959627bca46a9f7052b8fbc464b8323e68c2c",
|
||||
"rev": "f58b25254be441cd2a9b4b444ed83f1e51244f1f",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@ -53,11 +53,11 @@
|
||||
},
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1712437997,
|
||||
"narHash": "sha256-g0whLLwRvgO2FsyhY8fNk+TWenS3jg5UdlWL4uqgFeo=",
|
||||
"lastModified": 1713013257,
|
||||
"narHash": "sha256-ZEfGB3YCBVggvk0BQIqVY7J8XF/9jxQ68fCca6nib+8=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "e38d7cb66ea4f7a0eb6681920615dfcc30fc2920",
|
||||
"rev": "90055d5e616bd943795d38808c94dbf0dd35abe8",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@ -69,11 +69,11 @@
|
||||
},
|
||||
"nixpkgs-unstable": {
|
||||
"locked": {
|
||||
"lastModified": 1712439257,
|
||||
"narHash": "sha256-aSpiNepFOMk9932HOax0XwNxbA38GOUVOiXfUVPOrck=",
|
||||
"lastModified": 1712963716,
|
||||
"narHash": "sha256-WKm9CvgCldeIVvRz87iOMi8CFVB1apJlkUT4GGvA0iM=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "ff0dbd94265ac470dda06a657d5fe49de93b4599",
|
||||
"rev": "cfd6b5fc90b15709b780a5a1619695a88505a176",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -36,6 +36,17 @@
|
||||
|
||||
formatter = pkgs.alejandra;
|
||||
|
||||
apps.${system} = {
|
||||
install = {
|
||||
program = "${pkgs.writeShellScript "install" ''
|
||||
sudo nix run --experimental-features "nix-command flakes" ${inputs.disko}#default -- --mode disko ${./system/disko.nix}
|
||||
sudo nixos-generate-config --force --no-filesystems --root /mnt --dir ./system
|
||||
sudo nixos-install --no-root-password --root /mnt --flake ${self}#nixos
|
||||
''}";
|
||||
type = "app";
|
||||
};
|
||||
};
|
||||
|
||||
devShells.${system} = {
|
||||
default = pkgs.mkShellNoCC {
|
||||
packages = [
|
||||
@ -43,5 +54,17 @@
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
templates = {
|
||||
default = {
|
||||
path = ./.;
|
||||
|
||||
description = "A flake template for a NixOS setup with impermanence.";
|
||||
|
||||
welcomeText = ''
|
||||
To automatically install do a `nix run .#install`
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user