From 3d00ca5aac4e9c47b6ec7395386d161fe61b71e2 Mon Sep 17 00:00:00 2001 From: makefu Date: Wed, 5 Jul 2023 15:26:37 +0200 Subject: cake.r: use nixos-hardware module --- 1systems/cake/config.nix | 28 ++++++++++++++-------------- 1systems/cake/hardware-config.nix | 4 ++-- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/1systems/cake/config.nix b/1systems/cake/config.nix index b9550cb2e..f167484eb 100644 --- a/1systems/cake/config.nix +++ b/1systems/cake/config.nix @@ -3,30 +3,30 @@ let primaryInterface = "eth0"; in { imports = [ - ./hardware-config.nix - - + ../../2configs + ../../2configs/home-manager + ../../2configs/home/3dprint.nix #./hardware-config.nix { environment.systemPackages = with pkgs;[ rsync screen curl git tmux picocom mosh ];} - # - - # - # - # - # + # ../../2configs/tools/core.nix + ../../2configs/binary-cache/nixos.nix + #../../2configs/support-nixos.nix + # ../../2configs/homeautomation/default.nix + # ../../2configs/homeautomation/google-muell.nix + # ../../2configs/hw/pseyecam.nix # configure your hw: - # + # ../../2configs/save-diskspace.nix # directly use the alsa device instead of attaching to pulse - - - + ../../2configs/tinc/retiolum.nix + ../../2configs/audio/respeaker.nix + ../../2configs/home/rhasspy/default.nix + ../../2configs/home/rhasspy/led-control.nix ]; krebs = { enable = true; - tinc.retiolum.enable = true; build.host = config.krebs.hosts.cake; }; # ensure disk usage is limited diff --git a/1systems/cake/hardware-config.nix b/1systems/cake/hardware-config.nix index 932aa1929..a9633af33 100644 --- a/1systems/cake/hardware-config.nix +++ b/1systems/cake/hardware-config.nix @@ -1,7 +1,7 @@ -{ pkgs, lib, ... }: +{ pkgs, lib, nixos-hardware,... }: { environment.systemPackages = [ pkgs.libraspberrypi ]; - imports = [ ]; + imports = [ nixos-hardware.nixosModules.raspberry-pi-4 ]; boot.kernelPackages = pkgs.linuxPackages_rpi4; fileSystems = { "/" = { -- cgit v1.2.3