nixos-config/hosts/x86_64-linux/nixdev/default.nix

43 lines
1.1 KiB
Nix
Raw Normal View History

2021-11-12 16:01:55 +00:00
{ config, lib, pkgs, ... }:
2021-08-13 16:14:42 +00:00
{
sconfig = {
2021-11-12 16:01:55 +00:00
gnome = true;
hardware = "qemu";
2021-11-12 16:01:55 +00:00
profile = "desktop";
2021-08-13 16:14:42 +00:00
};
2021-11-12 16:01:55 +00:00
services.openssh.enable = true;
users.mutableUsers = false;
users.users.root.passwordFile = "/nix/persist/shadow_sean";
users.users.sean.passwordFile = "/nix/persist/shadow_sean";
2021-08-13 16:14:42 +00:00
environment.persistence."/nix/persist" = {
files = [
"/etc/machine-id"
"/etc/ssh/ssh_host_ed25519_key.pub"
"/etc/ssh/ssh_host_ed25519_key"
"/etc/ssh/ssh_host_rsa_key.pub"
"/etc/ssh/ssh_host_rsa_key"
];
directories = [
"/home"
"/var/log"
];
};
boot = {
loader.systemd-boot.enable = true;
loader.efi.canTouchEfiVariables = true;
};
fileSystems =
{
"/" = { device = "tmpfs"; fsType = "tmpfs"; options = [ "mode=755" ]; };
"/boot" = { device = "/dev/disk/by-partlabel/_esp"; fsType = "vfat"; options = [ "discard" "noatime" ]; };
"/nix" = { device = "/dev/disk/by-partlabel/_nix"; fsType = "ext4"; options = [ "discard" "noatime" ]; };
};
system.stateVersion = "21.05";
}