Compare commits

..

17 Commits

Author SHA1 Message Date
423d2e9df6 update 2024-04-16 18:36:26 +02:00
915b6bc2a0 updated 2024-04-16 18:35:57 +02:00
7b9e16602c updated 2024-04-16 18:34:56 +02:00
e6b547ce9b updated 2024-04-16 18:34:09 +02:00
ea2baddadb updated 2024-04-16 18:30:01 +02:00
7d7bc3cf42 update 2024-04-16 18:20:07 +02:00
d5be56bc0e update 2024-04-16 18:18:04 +02:00
c6446d24d8 updated 2024-04-16 18:07:22 +02:00
dfbfecb127 updated 2024-04-16 18:03:48 +02:00
57c2f55072 updated 2024-04-15 19:23:31 +02:00
a78d52be94 updated 2024-04-15 19:21:18 +02:00
23141dddec updated 2024-04-15 19:10:25 +02:00
8ac593fa84 updated 2024-04-15 18:58:06 +02:00
33aa9f1c5a fixed typo 2024-04-13 21:26:15 +02:00
dcd58997c9 updated 2024-04-09 14:08:35 +02:00
084017d0ef updated 2024-04-09 14:01:52 +02:00
6494aaf123 fix 2024-04-09 13:54:03 +02:00
9 changed files with 41 additions and 33 deletions

View File

@ -4,7 +4,7 @@
```txt ```txt
`nix-shell -p git` `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` `cd nixos`
`nix develop --extra-experimental-features "nix-command flakes"` `nix develop --extra-experimental-features "nix-command flakes"`
`[CHANGE SETTINGS]` `[CHANGE SETTINGS]`

View File

@ -1 +0,0 @@
,kristian,nixos,09.04.2024 09:22,file:///home/kristian/.config/libreoffice/4;

BIN
slides/slides.odp Normal file

Binary file not shown.

BIN
slides/slides.pdf Normal file

Binary file not shown.

Binary file not shown.

View File

@ -3,27 +3,13 @@
## Disk Partitioning ## Disk Partitioning
```txt ```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 cd nixos
nix develop --extra-experimental-features "nix-command flakes" nix run .#install --experimental-features "nix-command flakes"
sudo disko --mode disko ./systems/disko.nix
cd .. 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
sudo nixos-install --no-root-password --root /mnt --flake .#
```

View File

@ -33,7 +33,7 @@
}; };
}; };
services.getty.autoLogin = "demo"; services.getty.autologinUser = "demo";
console.keyMap = "de"; console.keyMap = "de";
time.timeZone = "Europe/Vienna"; time.timeZone = "Europe/Vienna";

24
template/flake.lock generated
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

@ -36,6 +36,17 @@
formatter = pkgs.alejandra; 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} = { devShells.${system} = {
default = pkgs.mkShellNoCC { default = pkgs.mkShellNoCC {
packages = [ 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`
'';
};
};
}; };
} }