tmpfs root for amd-workstation
This commit is contained in:
parent
4ce902b536
commit
295cdb63cb
@ -22,27 +22,20 @@
|
|||||||
services.apcupsd.enable = true;
|
services.apcupsd.enable = true;
|
||||||
boot.binfmt.emulatedSystems = [ "aarch64-linux" ];
|
boot.binfmt.emulatedSystems = [ "aarch64-linux" ];
|
||||||
|
|
||||||
|
boot.loader.timeout = 4; # Otherwise it's impossible to change generations
|
||||||
|
|
||||||
secrets.wireguard-wg0 = { };
|
secrets.wireguard-wg0 = { };
|
||||||
|
|
||||||
# networking.wireguard.interfaces.serokell = {
|
persist = {
|
||||||
# listenPort = 51820;
|
enable = true;
|
||||||
# ips = [
|
cache.clean.enable = false; # Scary...
|
||||||
# "172.20.0.52/32"
|
|
||||||
# # "fd73:7272:ed50::52/128"
|
state.homeFiles = [ ".aws/credentials" ];
|
||||||
# ];
|
|
||||||
# privateKeyFile = config.secrets.wireguard-serokell.decrypted;
|
state.directories = [ "/home/balsoft/.local/share/Steam" ];
|
||||||
# peers = [{
|
|
||||||
# allowedIPs = [
|
derivative.directories = [ "/home/balsoft/.wine" "/home/balsoft/.wine32" ];
|
||||||
# "0.0.0.0/0"
|
};
|
||||||
# # "::/0"
|
|
||||||
# ];
|
|
||||||
# # endpoint = "serokell.net:35944";
|
|
||||||
# endpoint = "147.75.100.17:35944";
|
|
||||||
# publicKey = "sgLUARawWJejANs2CwuCptwJO55c4jkmnP0L14FNCyw=";
|
|
||||||
# persistentKeepalive = 24;
|
|
||||||
# }];
|
|
||||||
# };
|
|
||||||
|
|
||||||
services.ezwg = {
|
services.ezwg = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -12,14 +12,16 @@
|
|||||||
boot.kernelModules = [ "kvm-amd" ];
|
boot.kernelModules = [ "kvm-amd" ];
|
||||||
boot.extraModulePackages = [ ];
|
boot.extraModulePackages = [ ];
|
||||||
|
|
||||||
fileSystems."/" = {
|
fileSystems."/persist" = {
|
||||||
device = "/dev/nvme0n1p2";
|
device = "/dev/nvme0n1p2";
|
||||||
fsType = "ext4";
|
fsType = "ext4";
|
||||||
|
neededForBoot = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/home" = {
|
fileSystems."/persist/home" = {
|
||||||
device = "/dev/disk/by-label/Home";
|
device = "/dev/disk/by-label/Home";
|
||||||
fsType = "ext4";
|
fsType = "ext4";
|
||||||
|
neededForBoot = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/boot" = {
|
fileSystems."/boot" = {
|
||||||
|
@ -29,7 +29,7 @@
|
|||||||
home.stateVersion = "20.09";
|
home.stateVersion = "20.09";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
persist.cache.directories = [ "/home/balsoft/.cache" "/var/cache" ];
|
||||||
|
|
||||||
services.avahi.enable = true;
|
services.avahi.enable = true;
|
||||||
|
|
||||||
|
@ -15,6 +15,8 @@
|
|||||||
"ssh/ssh_host_rsa_key.pub"
|
"ssh/ssh_host_rsa_key.pub"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
persist.state.homeFiles = [ ".ssh/known_hosts" ];
|
||||||
|
|
||||||
users.users.balsoft.openssh.authorizedKeys.keys =
|
users.users.balsoft.openssh.authorizedKeys.keys =
|
||||||
["ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDd2OdcSHUsgezuV+cpFqk9+Svtup6PxIolv1zokVZdqvS8qxLsA/rwYmQgTnuq4/zK/GIxcUCH4OxYlW6Or4M4G7qrDKcLAUrRPWkectqEooWRflZXkfHduMJhzeOAsBdMfYZQ9024GwKr/4yriw2BGa8GbbAnQxiSeTipzvXHoXuRME+/2GsMFAfHFvxzXRG7dNOiLtLaXEjUPUTcw/fffKy55kHtWxMkEvvcdyR53/24fmO3kLVpEuoI+Mp1XFtX3DvRM9ulgfwZUn8/CLhwSLwWX4Xf9iuzVi5vJOJtMOktQj/MwGk4tY/NPe+sIk+nAUKSdVf0y9k9JrJT98S/ comment"];
|
["ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDd2OdcSHUsgezuV+cpFqk9+Svtup6PxIolv1zokVZdqvS8qxLsA/rwYmQgTnuq4/zK/GIxcUCH4OxYlW6Or4M4G7qrDKcLAUrRPWkectqEooWRflZXkfHduMJhzeOAsBdMfYZQ9024GwKr/4yriw2BGa8GbbAnQxiSeTipzvXHoXuRME+/2GsMFAfHFvxzXRG7dNOiLtLaXEjUPUTcw/fffKy55kHtWxMkEvvcdyR53/24fmO3kLVpEuoI+Mp1XFtX3DvRM9ulgfwZUn8/CLhwSLwWX4Xf9iuzVi5vJOJtMOktQj/MwGk4tY/NPe+sIk+nAUKSdVf0y9k9JrJT98S/ comment"];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user