mirror of
https://git.sr.ht/~rouven/nixos-config
synced 2025-01-18 17:11:39 +01:00
prepare vm impermanence
This commit is contained in:
parent
26e43a6da8
commit
2a06e7523e
2 changed files with 14 additions and 6 deletions
|
@ -13,6 +13,12 @@
|
|||
kernelPackages = pkgs.linuxPackages_latest;
|
||||
tmp.useTmpfs = true;
|
||||
};
|
||||
networking.hostName = "vm";
|
||||
environment.persistence."/nix/persistent/system" = {
|
||||
directories = [ "/etc/nixos" ];
|
||||
files = [ "/etc/machine-id" ];
|
||||
};
|
||||
|
||||
|
||||
time.timeZone = "Europe/Berlin";
|
||||
|
||||
|
@ -38,11 +44,13 @@
|
|||
# Enable the OpenSSH daemon.
|
||||
services.openssh.enable = true;
|
||||
|
||||
# firmware updates
|
||||
users.users.root.openssh.authorizedKeys.keyFiles = [
|
||||
../../keys/ssh/rouven-thinkpad
|
||||
];
|
||||
|
||||
users.mutableUsers = false;
|
||||
users.users.root = {
|
||||
initialHashedPassword = "$6$Y2N3qdQL/irp4wM5$dxUv1vyACcf/lE69tHiobTgNbW8v2sbrlvCsAbv8YXmRV4fxS45p0uly.1sv2l0uRN1Y8dxnNFQASRN5qNJk71";
|
||||
openssh.authorizedKeys.keyFiles = [
|
||||
../../keys/ssh/rouven-thinkpad
|
||||
];
|
||||
};
|
||||
system.stateVersion = "22.11";
|
||||
|
||||
}
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
|
||||
fileSystems."/" =
|
||||
{
|
||||
|
||||
|
||||
# Replace with actual config
|
||||
device = "/dev/sda";
|
||||
fsType = "ext4";
|
||||
|
|
Loading…
Reference in a new issue