nixdev: update settings

This commit is contained in:
Sean Buckley 2021-11-12 11:01:55 -05:00
parent ee54c61eda
commit a23d28e5c9

View file

@ -1,10 +1,17 @@
{ ... }: { config, lib, pkgs, ... }:
{ {
sconfig = { sconfig = {
profile = "server"; gnome = true;
hardware = "qemu"; hardware = "qemu";
profile = "desktop";
}; };
services.openssh.enable = true;
users.mutableUsers = false;
users.users.root.passwordFile = "/nix/persist/shadow_sean";
users.users.sean.passwordFile = "/nix/persist/shadow_sean";
environment.persistence."/nix/persist" = { environment.persistence."/nix/persist" = {
files = [ files = [
"/etc/machine-id" "/etc/machine-id"
@ -19,20 +26,11 @@
]; ];
}; };
security.sudo.wheelNeedsPassword = false;
boot = { boot = {
loader.systemd-boot.enable = true; loader.systemd-boot.enable = true;
loader.efi.canTouchEfiVariables = true; loader.efi.canTouchEfiVariables = true;
}; };
networking = {
useDHCP = false;
interfaces.enp6s18.ipv4.addresses = [{ address = "10.5.7.160"; prefixLength = 24; }];
defaultGateway = "10.5.7.1";
nameservers = [ "1.1.1.1" ];
};
fileSystems = fileSystems =
{ {
"/" = { device = "tmpfs"; fsType = "tmpfs"; options = [ "mode=755" ]; }; "/" = { device = "tmpfs"; fsType = "tmpfs"; options = [ "mode=755" ]; };