Files
cyper-rpi/nixos/default.nix
2026-02-11 11:04:59 +01:00

54 lines
1.1 KiB
Nix

{ config, pkgs, inputs, self, primaryUser, ... }:
{
imports = [
./hardware.nix
./settings.nix
./packages.nix
];
nixpkgs.config.allowUnfree = true;
networking = {
hostName = "rpi-4";
networkmanager.enable = true;
};
# SSH configuration
services.openssh = {
enable = true;
settings.PermitRootLogin = "no";
settings.PasswordAuthentication = true;
};
# User configuration
users.users.${primaryUser} = {
isNormalUser = true;
home = "/home/${primaryUser}";
description = "Phil";
extraGroups = [ "wheel" "networkmanager" ];
shell = pkgs.fish;
};
# Shell
programs.zsh.enable = true;
programs.fish.enable = true;
# Nix settings
nix = {
settings = {
experimental-features = [ "nix-command" "flakes" ];
auto-optimise-store = true;
builders = "ssh://phil@192.168.2.40 aarch64-linux";
builders-use-substitutes = true;
};
gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 30d";
};
};
system.stateVersion = "24.11";
}