add configs for raspi4

This commit is contained in:
Andreas Zweili 2022-03-15 16:56:05 +01:00
parent 92cd13aa3f
commit 23041cd74b
2 changed files with 40 additions and 0 deletions

View File

@ -0,0 +1,16 @@
{ config, custom, inputs, pkgs, ... }:
{
imports = [
(import "${inputs.self}/systems/raspi4" {
hostname = "raspi-test";
ip = "10.7.89.99";
inherit inputs;
})
(import "${inputs.self}/modules/restic-server-client" {
time = "11:30"; inherit config custom inputs pkgs;
})
"${inputs.self}/modules/code-server"
"${inputs.self}/modules/docker"
"${inputs.self}/modules/nix-direnv"
];
}

View File

@ -0,0 +1,24 @@
{ inputs, hostname, ip, ... }:
{
imports = [
(import "${inputs.self}/modules/mk-network" { inherit hostname ip; })
];
inputs.nixos-hardware.nixosModules.raspberry-pi-4;
fileSystems = {
"/" = {
device = "/dev/disk/by-label/NIXOS_SD";
fsType = "ext4";
options = [ "noatime" ];
};
};
hardware.raspberry-pi."4".fkms-3d.enable = true;
hardware.raspberry-pi."4".audio.enable = true;
hardware.pulseaudio.enable = true;
environment.noXlibs = true;
documentation.enable = false;
documentation.nixos.enable = false;
programs.command-not-found.enable = false;
}