This commit is contained in:
2026-02-11 11:04:59 +01:00
commit 50d930e1ff
31 changed files with 2249 additions and 0 deletions

53
nixos/default.nix Normal file
View File

@@ -0,0 +1,53 @@
{ 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";
}