1
0
Fork 0
mirror of https://git.sr.ht/~roxwize/.dotfiles synced 2025-07-01 14:26:00 +00:00
This commit is contained in:
Rae 5e 2025-03-03 19:09:08 -05:00
parent a15a59af09
commit 7cdc89ddeb
Signed by: rae
GPG key ID: 5B1A0FAB9BAB81EE
7 changed files with 247 additions and 11 deletions

View file

@ -1,6 +1,7 @@
{ config, pkgs, inputs, ... }:
{
imports = [
inputs.nix-flatpak.nixosModules.nix-flatpak
../packages.nix
];
@ -14,7 +15,10 @@
security.polkit.enable = true;
nix.settings.experimental-features = [ "nix-command" "flakes" ];
nix.settings = {
experimental-features = [ "nix-command" "flakes" ];
trusted-users = [ "root" "rae" ];
};
nixpkgs = {
config.allowUnfree = true;
overlays = import ../overlays.nix inputs;

View file

@ -0,0 +1,13 @@
{ inputs, ... }: {
imports = [
inputs.raspberry-pi-nix.nixosModules.raspberry-pi
inputs.raspberry-pi-nix.nixosModules.sd-image
./hardware-configuration.nix
];
networking.hostName = "near";
time.timeZone = "America/New_York";
system.stateVersion = "24.11";
}

View file

@ -0,0 +1,20 @@
{ ... }: {
raspberry-pi-nix.board = "bcm2712"; # RPI5 64bit
hardware.raspberry-pi.config.all = let
o = k: v: {
name = k;
value = {
enable = true;
value = v;
};
};
in {
base-dt-params = builtins.listToAttrs [
(o "BOOT_UART" 1)
(o "uart_2ndstage" 1)
];
dt-overlays = builtins.listToAttrs [
(o "disable-bt" {})
];
};
}