tmp
This commit is contained in:
@@ -22,7 +22,6 @@ in
|
||||
imports = [
|
||||
# Include the results of the hardware scan.
|
||||
./hardware-configuration.nix
|
||||
./docker-pi4.nix
|
||||
../default.nix
|
||||
];
|
||||
|
||||
@@ -40,14 +39,29 @@ in
|
||||
"usb_storage"
|
||||
];
|
||||
loader = {
|
||||
grub.enable = false;
|
||||
generic-extlinux-compatible.enable = true;
|
||||
systemd-boot.enable = true;
|
||||
};
|
||||
# kernelParams = [
|
||||
# "snd_bcm2835.enable_hdmi=1"
|
||||
# ];
|
||||
};
|
||||
|
||||
# hardware = {
|
||||
# raspberry-pi."4".fkms-3d.enable = true;
|
||||
# raspberry-pi."4".apply-overlays-dtmerge.enable = true;
|
||||
# raspberry-pi."4".audio.enable = true;
|
||||
# deviceTree = {
|
||||
# enable = true;
|
||||
# filter = "*rpi-4-*.dtb";
|
||||
# };
|
||||
# pulseaudio.enable = true;
|
||||
# };
|
||||
|
||||
# Set your time zone.
|
||||
time.timeZone = timezone;
|
||||
|
||||
sound.enable = true;
|
||||
|
||||
networking = {
|
||||
hostName = hostname;
|
||||
wireless = {
|
||||
@@ -57,8 +71,18 @@ in
|
||||
};
|
||||
};
|
||||
|
||||
# systemd.services.btattach = {
|
||||
# before = [ "bluetooth.service" ];
|
||||
# after = [ "dev-ttyAMA0.device" ];
|
||||
# wantedBy = [ "multi-user.target" ];
|
||||
# serviceConfig = {
|
||||
# ExecStart = "${pkgs.bluez}/bin/btattach -B /dev/ttyAMA0 -P bcm -S 3000000";
|
||||
# };
|
||||
# };
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
vim
|
||||
libraspberrypi
|
||||
raspberrypi-eeprom
|
||||
htop
|
||||
git
|
||||
@@ -75,11 +99,14 @@ in
|
||||
"wheel"
|
||||
"docker"
|
||||
];
|
||||
shell = pkgs.zsh;
|
||||
};
|
||||
};
|
||||
|
||||
virtualisation.docker.enable = true;
|
||||
|
||||
console.enable = false;
|
||||
|
||||
# This option defines the first version of NixOS you have installed on this particular machine,
|
||||
# and is used to maintain compatibility with application data (e.g. databases) created on older NixOS versions.
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user