Add nixos-hardware flake for stinky.

This commit is contained in:
2025-10-28 10:59:16 +00:00
parent 98769f59d6
commit 1bb202d017
3 changed files with 32 additions and 1 deletions

17
flake.lock generated
View File

@@ -745,6 +745,22 @@
"type": "github" "type": "github"
} }
}, },
"nixos-hardware": {
"locked": {
"lastModified": 1760958188,
"narHash": "sha256-2m1S4jl+GEDtlt2QqeHil8Ny456dcGSKJAM7q3j/BFU=",
"owner": "NixOS",
"repo": "nixos-hardware",
"rev": "d6645c340ef7d821602fd2cd199e8d1eed10afbc",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "master",
"repo": "nixos-hardware",
"type": "github"
}
},
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1761016216, "lastModified": 1761016216,
@@ -943,6 +959,7 @@
"home-manager": "home-manager", "home-manager": "home-manager",
"impermanence": "impermanence", "impermanence": "impermanence",
"nix-index-database": "nix-index-database", "nix-index-database": "nix-index-database",
"nixos-hardware": "nixos-hardware",
"nixpkgs": "nixpkgs", "nixpkgs": "nixpkgs",
"nixpkgs-unstable": "nixpkgs-unstable_2", "nixpkgs-unstable": "nixpkgs-unstable_2",
"nixvim": "nixvim", "nixvim": "nixvim",

View File

@@ -38,6 +38,7 @@
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
inputs.home-manager.follows = "home-manager"; inputs.home-manager.follows = "home-manager";
}; };
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
}; };
outputs = outputs =
@@ -53,6 +54,7 @@
sops-nix, sops-nix,
browser-previews, browser-previews,
omarchy-nix, omarchy-nix,
nixos-hardware,
... ...
}@inputs: }@inputs:
let let
@@ -163,7 +165,10 @@
]; ];
chilly = mkHost "x86_64-linux" "workstation" [ ./hosts/chilly ]; chilly = mkHost "x86_64-linux" "workstation" [ ./hosts/chilly ];
sparky = mkHost "x86_64-linux" "desktop" [ ./hosts/sparky ]; sparky = mkHost "x86_64-linux" "desktop" [ ./hosts/sparky ];
stinky = mkHost "aarch64-linux" "minimal" [ ./hosts/stinky ]; stinky = mkHost "aarch64-linux" "minimal" [
nixos-hardware.nixosModules.raspberry-pi-4
./hosts/stinky
];
}; };
deploy = { deploy = {

View File

@@ -15,6 +15,14 @@
./hardware.nix ./hardware.nix
]; ];
hardware = {
raspberry-pi."4".apply-overlays-dtmerge.enable = true;
deviceTree = {
enable = true;
filter = "*rpi-4-*.dtb";
};
};
networking.hostName = "stinky"; networking.hostName = "stinky";
# Configure impermanence for tmpfs root (filesystem config in hardware.nix) # Configure impermanence for tmpfs root (filesystem config in hardware.nix)
@@ -39,6 +47,7 @@
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
libcamera libcamera
libraspberrypi libraspberrypi
raspberrypi-eeprom
]; ];
# Firewall: Allow access to OctoPrint # Firewall: Allow access to OctoPrint