69 lines
1.4 KiB
Nix
Executable File
69 lines
1.4 KiB
Nix
Executable File
# Edit this configuration file to define what should be installed on
|
|
# your system. Help is available in the configuration.nix(5) man page, on
|
|
# https://search.nixos.org/options and in the NixOS manual (`nixos-help`).
|
|
|
|
{ config, pkgs, ... }:
|
|
let
|
|
user = "matt";
|
|
password = config.sops.secrets."desktop/matt_password".path;
|
|
in
|
|
{
|
|
imports = [
|
|
./adguard.nix
|
|
./boot.nix
|
|
./impermanence.nix
|
|
./networking.nix
|
|
./pi4-hw.nix
|
|
./sops.nix
|
|
../default.nix
|
|
];
|
|
programs.zsh.enable = true;
|
|
|
|
services = {
|
|
hardware.argonone = {
|
|
enable = true;
|
|
package = pkgs.argononed;
|
|
};
|
|
openssh = {
|
|
enable = true;
|
|
authorizedKeysFiles = [
|
|
config.sops.secrets."ssh-keys-public/pi5".path
|
|
];
|
|
};
|
|
};
|
|
|
|
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; [
|
|
argononed
|
|
git
|
|
libraspberrypi
|
|
raspberrypi-eeprom
|
|
raspberrypifw
|
|
raspberrypiWirelessFirmware
|
|
raspberrypi-armstubs
|
|
vim
|
|
];
|
|
|
|
users = {
|
|
mutableUsers = false;
|
|
users."${user}" = {
|
|
isNormalUser = true;
|
|
hashedPasswordFile = password;
|
|
extraGroups = [
|
|
"wheel"
|
|
"docker"
|
|
"video"
|
|
];
|
|
shell = pkgs.zsh;
|
|
};
|
|
};
|
|
}
|