os/hosts/fae.nix

60 lines
1.3 KiB
Nix
Raw Normal View History

2022-01-19 00:13:15 +00:00
{ config, lib, pkgs, profiles, ... }:
{
imports = [
# profiles.networking
#profiles.core
"${fetchTarball {
url = "https://github.com/NixOS/nixos-hardware/archive/8f1bf828d8606fe38a02df312cf14546ae200a72.tar.gz";
sha256 = "11milap153g3f63fcrcv4777vd64f7wlfkk9p3kpxi6dqd2sxvh4";
}
}/raspberry-pi/4"
profiles.users.root # make sure to configure ssh keys
profiles.users.nixos
];
config = {
pub-solar.x-os.iso-options.enable = true;
fileSystems = {
"/" = {
device = "/dev/disk/by-label/NIXOS_SD";
fsType = "ext4";
options = [ "noatime" ];
};
};
networking = {
hostName = "fae";
};
environment.systemPackages = with pkgs; [ vim ];
services.openssh.enable = true;
#users = {
# mutableUsers = false;
# users."${user}" = {
# isNormalUser = true;
# password = password;
# extraGroups = [ "wheel" ];
# };
#};
security.sudo.extraConfig = lib.mkAfter ''
%wheel ALL=(ALL) NOPASSWD:ALL
'';
# Enable GPU acceleration
hardware.raspberry-pi."4".fkms-3d.enable = true;
#services.xserver = {
# enable = true;
# displayManager.lightdm.enable = true;
# desktopManager.xfce.enable = true;
#};
hardware.pulseaudio.enable = true;
};
}