stan: mount vm fs on boot
This commit is contained in:
parent
58aee980fd
commit
31cfa1e2f6
@ -212,6 +212,10 @@ in {
|
||||
};
|
||||
};
|
||||
|
||||
programs.ssh.knownHosts = {
|
||||
"[192.168.122.249]:7022".publicKey = "ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBJd1dn/0YmUEInXbNTpUFNwzDrP0/FoMEJJc+3yYkZaCMrT0WPS5rFlkWJZ8mQf8udnfUWnTZzpDwIvXpfMQqf0=";
|
||||
};
|
||||
|
||||
system.autoUpgrade.allowReboot = false;
|
||||
system.stateVersion = "22.05"; # Did you read the comment?
|
||||
|
||||
|
@ -1,7 +1,4 @@
|
||||
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
||||
# and may be overwritten by future invocations. Please make changes
|
||||
# to /etc/nixos/configuration.nix instead.
|
||||
{ config, lib, modulesPath, ... }:
|
||||
{ pkgs, config, lib, modulesPath, ... }:
|
||||
|
||||
{
|
||||
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
|
||||
@ -12,19 +9,40 @@
|
||||
boot.kernelModules = [ "kvm-intel" ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
||||
fileSystems."/" = {
|
||||
device = "/dev/disk/by-uuid/56138f23-38c0-4e4f-8dee-4fcd57c238a0";
|
||||
fsType = "ext4";
|
||||
system.fsPackages = [ pkgs.sshfs ];
|
||||
|
||||
fileSystems = {
|
||||
"/" = {
|
||||
device = "/dev/disk/by-uuid/56138f23-38c0-4e4f-8dee-4fcd57c238a0";
|
||||
fsType = "ext4";
|
||||
};
|
||||
"/boot/efi" = {
|
||||
device = "/dev/disk/by-uuid/4CFA-E61D";
|
||||
fsType = "vfat";
|
||||
};
|
||||
"/home/abieber/aef100" = {
|
||||
device = "vm:aef100/";
|
||||
fsType = "sshfs";
|
||||
options = [
|
||||
"_netdev"
|
||||
"x-systemd.automount"
|
||||
|
||||
(builtins.replaceStrings [ " " ] [ "\\040" ]
|
||||
"ssh_command=${pkgs.openssh}/bin/ssh -F /home/abieber/.ssh/config")
|
||||
"reconnect"
|
||||
"allow_other"
|
||||
"cache=yes"
|
||||
"auto_cache"
|
||||
|
||||
"ServerAliveInterval=15"
|
||||
"IdentityFile=/home/abieber/.ssh/vm"
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
boot.initrd.luks.devices."luks-e12e4b82-6f9e-4f80-b3f4-7e9a248e7827".device =
|
||||
"/dev/disk/by-uuid/e12e4b82-6f9e-4f80-b3f4-7e9a248e7827";
|
||||
|
||||
fileSystems."/boot/efi" = {
|
||||
device = "/dev/disk/by-uuid/4CFA-E61D";
|
||||
fsType = "vfat";
|
||||
};
|
||||
|
||||
swapDevices =
|
||||
[{ device = "/dev/disk/by-uuid/85a3b559-0c0f-485d-9107-9f6ba5ad31da"; }];
|
||||
|
||||
|
@ -9,8 +9,7 @@ let
|
||||
#tidal-hifi = prIsOpen 228552 (import ./tidal-hifi.nix { inherit lib; });
|
||||
#matrix-synapse = prIsOpen.overlay 236474 (import ./matrix-synapse.nix);
|
||||
in {
|
||||
nixpkgs.overlays =
|
||||
if isUnstable then [ ] else [ ];
|
||||
nixpkgs.overlays = if isUnstable then [ ] else [ ];
|
||||
}
|
||||
|
||||
# Example Python dep overlay
|
||||
|
Loading…
Reference in New Issue
Block a user