mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-11-09 18:47:02 +00:00
42 lines
1.1 KiB
Nix
42 lines
1.1 KiB
Nix
{ config, lib, 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 =
|
|
lib.genAttrs
|
|
[
|
|
"machine-id"
|
|
"NetworkManager/system-connections"
|
|
"ssh/ssh_host_ed25519_key"
|
|
"ssh/ssh_host_rsa_key"
|
|
]
|
|
(name: { source = "/nix/persist/etc/${name}"; });
|
|
|
|
sconfig = {
|
|
gnome = true;
|
|
profile = "desktop";
|
|
horizon.enable = true;
|
|
wg-home.enable = true;
|
|
};
|
|
|
|
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"; };
|
|
"/var/log" = { device = "/nix/persist/var/log"; noCheck = true; options = [ "bind" ]; };
|
|
};
|
|
|
|
system.stateVersion = "21.05";
|
|
}
|