mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-12-21 19:24:15 +00:00
51 lines
1.3 KiB
Nix
51 lines
1.3 KiB
Nix
{ pkgs, ... }:
|
|
{
|
|
services = {
|
|
openssh.enable = true;
|
|
};
|
|
|
|
users.mutableUsers = false;
|
|
users.users.root.passwordFile = "/nix/persist/shadow_sean";
|
|
users.users.sean.passwordFile = "/nix/persist/shadow_sean";
|
|
|
|
environment.etc."NetworkManager/system-connections".source =
|
|
"/nix/persist/etc/NetworkManager/system-connections";
|
|
|
|
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 = [
|
|
"/var/log"
|
|
];
|
|
};
|
|
|
|
sconfig = {
|
|
gnome = true;
|
|
profile = "desktop";
|
|
hardware = "physical";
|
|
security-tools = true;
|
|
};
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
vmware-horizon-client
|
|
];
|
|
|
|
boot = {
|
|
loader.systemd-boot.enable = true;
|
|
loader.efi.canTouchEfiVariables = false;
|
|
};
|
|
|
|
fileSystems = {
|
|
"/" = { device = "tmpfs"; fsType = "tmpfs"; options = [ "mode=755" ]; };
|
|
"/nix" = { device = "zroot/locker/nix"; fsType = "zfs"; };
|
|
"/home" = { device = "zroot/locker/home"; fsType = "zfs"; };
|
|
"/boot" = { device = "/dev/disk/by-partlabel/EFI\\x20system\\x20partition"; fsType = "vfat"; };
|
|
};
|
|
|
|
system.stateVersion = "21.05";
|
|
}
|