c3h-nixfiles/hosts/bemmer/configuration.nix

44 lines
1.1 KiB
Nix
Raw Normal View History

2021-10-22 20:58:56 +00:00
{ modulesPath, lib, pkgs, ... }:
{
imports = [
(modulesPath + "/installer/sd-card/sd-image-aarch64.nix")
<nixos-hardware/raspberry-pi/4>
../../common
# services
2021-10-22 21:46:25 +00:00
../../shared-services/pulseaudio.nix
2021-10-22 20:58:56 +00:00
#../../shared-services/nfs-server.nix
2021-10-22 21:46:25 +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-22 20:58:56 +00:00
];
users.users.c3h = {
isNormalUser = true;
password = "c3h";
extraGroups = [ "wheel" ];
packages = with pkgs; [ chromium firefox mpv youtube-dl ];
};
networking.hostName = "bemmer";
networking.domain = "c3h";
networking.useDHCP = true;
nixpkgs.system = "aarch64-linux";
boot.initrd.availableKernelModules = lib.mkForce [ "vc4" "i2c_bcm2835" ];
boot.supportedFilesystems = lib.mkForce [ "ext4" "vfat" ];
boot.kernelPackages = pkgs.linuxPackages_rpi4;
documentation.enable = false;
hardware.raspberry-pi."4" = {
fkms-3d.enable = true;
2021-10-22 21:46:25 +00:00
#audio.enable = true;
2021-10-22 20:58:56 +00:00
};
system.stateVersion = "21.05";
}