add configs for raspi4
This commit is contained in:
parent
92cd13aa3f
commit
23041cd74b
|
@ -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"
|
||||
];
|
||||
}
|
|
@ -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;
|
||||
}
|
Loading…
Reference in New Issue