mirror of
https://git.sr.ht/~roxwize/.dotfiles
synced 2025-07-01 14:26:00 +00:00
~
This commit is contained in:
parent
a15a59af09
commit
7cdc89ddeb
7 changed files with 247 additions and 11 deletions
|
@ -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;
|
||||
|
|
13
nixos/hosts/near/configuration.nix
Normal file
13
nixos/hosts/near/configuration.nix
Normal 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";
|
||||
}
|
20
nixos/hosts/near/hardware-configuration.nix
Normal file
20
nixos/hosts/near/hardware-configuration.nix
Normal 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" {})
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue