nixos-config/hosts/nixdev/default.nix

41 lines
907 B
Nix
Raw Normal View History

2021-11-12 16:01:55 +00:00
{ config, lib, pkgs, ... }:
2021-08-13 16:14:42 +00:00
{
2021-12-10 06:34:46 +00:00
networking.hostName = "nixdev";
2021-08-13 16:14:42 +00:00
sconfig = {
2021-11-12 16:01:55 +00:00
gnome = true;
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";
2022-03-28 03:06:23 +00:00
environment.variables.GTK_THEME = "Adwaita-dark";
2021-12-04 02:45:41 +00:00
environment.etc =
2022-03-07 16:10:35 +00:00
lib.genAttrs
2021-12-04 02:45:41 +00:00
[
"machine-id"
"ssh/ssh_host_ed25519_key"
"ssh/ssh_host_rsa_key"
2022-03-07 16:10:35 +00:00
]
(name: { source = "/nix/persist/etc/${name}"; });
2021-08-13 16:14:42 +00:00
2022-03-28 03:06:23 +00:00
boot.loader.grub = {
enable = true;
mirroredBoots = [{
path = "/nix/persist/boot";
devices = [ "/dev/sda" ];
}];
2021-08-13 16:14:42 +00:00
};
fileSystems =
{
"/" = { device = "tmpfs"; fsType = "tmpfs"; options = [ "mode=755" ]; };
2022-03-28 03:06:23 +00:00
"/nix" = { device = "/dev/sda1"; fsType = "ext4"; options = [ "noatime" ]; };
2021-12-05 00:58:08 +00:00
};
2021-08-13 16:14:42 +00:00
}