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;
|
2021-09-29 02:24:03 +00:00
|
|
|
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-12-04 02:45:41 +00:00
|
|
|
environment.etc =
|
|
|
|
builtins.listToAttrs (map
|
|
|
|
(name: { inherit name; value.source = "/nix/persist/etc/${name}"; })
|
|
|
|
[
|
|
|
|
"machine-id"
|
|
|
|
"ssh/ssh_host_ed25519_key"
|
|
|
|
"ssh/ssh_host_rsa_key"
|
|
|
|
]);
|
2021-08-13 16:14:42 +00:00
|
|
|
|
|
|
|
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" ]; };
|
2021-12-05 00:58:08 +00:00
|
|
|
"/home" = { device = "/nix/persist/home"; noCheck = true; options = [ "bind" ]; };
|
|
|
|
"/var/log" = { device = "/nix/persist/var/log"; noCheck = true; options = [ "bind" ]; };
|
|
|
|
};
|
2021-08-13 16:14:42 +00:00
|
|
|
|
|
|
|
system.stateVersion = "21.05";
|
|
|
|
}
|