mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-11-09 18:47:02 +00:00
44 lines
986 B
Nix
44 lines
986 B
Nix
{ config, lib, modulesPath, pkgs, ... }:
|
|
{
|
|
imports = [
|
|
"${modulesPath}/profiles/qemu-guest.nix"
|
|
];
|
|
|
|
sconfig = {
|
|
gnome = true;
|
|
profile = "desktop";
|
|
};
|
|
|
|
services.qemuGuest.enable = true;
|
|
|
|
users.mutableUsers = false;
|
|
users.users.root.passwordFile = "/nix/persist/shadow_sean";
|
|
users.users.sean.passwordFile = "/nix/persist/shadow_sean";
|
|
|
|
environment.variables.GTK_THEME = "Adwaita-dark";
|
|
|
|
environment.etc =
|
|
lib.genAttrs
|
|
[
|
|
"machine-id"
|
|
"ssh/ssh_host_ed25519_key"
|
|
"ssh/ssh_host_rsa_key"
|
|
]
|
|
(name: { source = "/nix/persist/etc/${name}"; });
|
|
|
|
boot.loader.grub = {
|
|
enable = true;
|
|
mirroredBoots = [{
|
|
path = "/nix/persist/boot";
|
|
devices = [ "/dev/sda" ];
|
|
}];
|
|
};
|
|
|
|
fileSystems =
|
|
{
|
|
"/" = { device = "tmpfs"; fsType = "tmpfs"; options = [ "mode=755" ]; };
|
|
"/nix" = { device = "/dev/sda1"; fsType = "ext4"; options = [ "noatime" ]; };
|
|
};
|
|
|
|
system.stateVersion = "22.05";
|
|
}
|