use rpi4 hardware and make experience nicer

This commit is contained in:
Infinidoge 2024-11-21 11:27:28 -05:00
parent 66e01ab6f9
commit ab7068bbbd
Signed by: Infinidoge
SSH key fingerprint: SHA256:oAMyvotlNFraMmZmr+p6AxnNfW/GioTs1pOn3V4tQ7A
3 changed files with 33 additions and 3 deletions

View file

@ -1,4 +1,4 @@
{ lib, ... }: { pkgs, lib, ... }:
{ {
system.stateVersion = "24.11"; system.stateVersion = "24.11";
@ -10,7 +10,9 @@
# STOP TRYING TO GIVE IT TO ME # STOP TRYING TO GIVE IT TO ME
boot.supportedFilesystems.zfs = lib.mkForce false; boot.supportedFilesystems.zfs = lib.mkForce false;
boot.tmp.useTmpfs = true; boot.tmp.cleanOnBoot = true;
boot.loader.generic-extlinux-compatible.enable = false;
# Set root password to a secure password # Set root password to a secure password
users.users.root.password = "asecurepassword"; users.users.root.password = "asecurepassword";
@ -35,4 +37,14 @@
time.timeZone = "America/New_York"; time.timeZone = "America/New_York";
raspberry-pi-nix.board = "bcm2711"; raspberry-pi-nix.board = "bcm2711";
environment.systemPackages = with pkgs; [
vim
git
];
nix.settings = {
substituters = [ "https://hydra.inx.moe?priority=10" ];
trusted-public-keys = [ "infinidoge-1:uw2A6JHHdGJ9GPk0NEDnrdfVkPp0CUY3zIvwVgNlrSk=" ];
};
} }

View file

@ -34,6 +34,21 @@
"type": "github" "type": "github"
} }
}, },
"nixos-hardware": {
"locked": {
"lastModified": 1731403644,
"narHash": "sha256-T9V7CTucjRZ4Qc6pUEV/kpgNGzQbHWfGcfK6JJLfUeI=",
"owner": "NixOS",
"repo": "nixos-hardware",
"rev": "f6581f1c3b137086e42a08a906bdada63045f991",
"type": "github"
},
"original": {
"owner": "NixOS",
"repo": "nixos-hardware",
"type": "github"
}
},
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1731245184, "lastModified": 1731245184,
@ -68,6 +83,7 @@
}, },
"root": { "root": {
"inputs": { "inputs": {
"nixos-hardware": "nixos-hardware",
"nixpkgs": "nixpkgs", "nixpkgs": "nixpkgs",
"rpi-nix": "rpi-nix" "rpi-nix": "rpi-nix"
} }

View file

@ -4,9 +4,10 @@
inputs = { inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
rpi-nix.url = "github:nix-community/raspberry-pi-nix"; rpi-nix.url = "github:nix-community/raspberry-pi-nix";
nixos-hardware.url = "github:NixOS/nixos-hardware";
}; };
outputs = { nixpkgs, rpi-nix, ... }: { outputs = { nixpkgs, rpi-nix, nixos-hardware, ... }: {
nixosConfigurations.kiosk = nixpkgs.lib.nixosSystem { nixosConfigurations.kiosk = nixpkgs.lib.nixosSystem {
system = "aarch64-linux"; system = "aarch64-linux";
@ -16,6 +17,7 @@
rpi-nix.nixosModules.raspberry-pi rpi-nix.nixosModules.raspberry-pi
rpi-nix.nixosModules.sd-image rpi-nix.nixosModules.sd-image
nixos-hardware.nixosModules.raspberry-pi-4
{ {
sdImage.compressImage = false; sdImage.compressImage = false;
} }