c3h-nixfiles/hosts/bemmer/configuration.nix

37 lines
995 B
Nix
Raw Normal View History

2021-10-22 22:26:56 +00:00
{ modulesPath, lib, pkgs, ... }:
{
imports = [
(modulesPath + "/installer/sd-card/sd-image-aarch64.nix")
<nixos-hardware/raspberry-pi/4>
../../common
# services
../../shared-services/pulseaudio.nix
2021-10-24 18:55:12 +00:00
../../shared-services/nfs-client.nix
2021-10-22 22:26:56 +00:00
../../shared-services/mpd.nix
../../shared-services/ympd.nix
../../shared-services/spotifyd.nix
../../shared-services/desktop.nix
../../shared-services/vnc.nix
../../shared-services/webserver.nix
];
2021-10-24 18:55:28 +00:00
2021-10-24 20:56:43 +00:00
# We import sd-image-aarch64.nix so we can build a config.system.build.sdImage
# But it imports some modules we don't want, so disable them
2021-10-24 18:55:28 +00:00
disabledModules = [
"profiles/base.nix"
2021-10-24 20:56:43 +00:00
"profiles/all-hardware.nix"
2021-10-24 18:55:28 +00:00
];
2021-10-22 22:26:56 +00:00
networking.hostName = "bemmer";
networking.domain = "c3h";
networking.useDHCP = true;
nixpkgs.system = "aarch64-linux";
2021-10-24 18:55:28 +00:00
hardware.raspberry-pi."4".fkms-3d.enable = true;
2021-10-24 22:12:51 +00:00
boot.tmpOnTmpfs = true; # building stuff on sd-card is slow
2021-10-22 22:26:56 +00:00
system.stateVersion = "21.05";
}