setup nixos-hardware for raspberry pi specific stuff

This commit is contained in:
Adithya 2023-11-11 13:07:14 +05:30
parent 42e449ad57
commit 486970b98c
Signed by: adtya
GPG key ID: 48FC9915FFD326D0
3 changed files with 27 additions and 0 deletions

View file

@ -286,6 +286,21 @@
"type": "github"
}
},
"nixos-hardware": {
"locked": {
"lastModified": 1699159446,
"narHash": "sha256-cL63IjsbPl2otS7R4kdXbVOJOXYMpGw5KGZoWgdCuCM=",
"owner": "NixOS",
"repo": "nixos-hardware",
"rev": "627bc9b88256379578885a7028c9e791c29fb581",
"type": "github"
},
"original": {
"owner": "NixOS",
"repo": "nixos-hardware",
"type": "github"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1699099776,
@ -450,6 +465,7 @@
"if3": "if3",
"impermanence": "impermanence",
"lanzaboote": "lanzaboote",
"nixos-hardware": "nixos-hardware",
"nixpkgs": "nixpkgs",
"nixvim": "nixvim",
"wiki": "wiki"

View file

@ -27,6 +27,10 @@
};
};
nixos-hardware = {
url = "github:NixOS/nixos-hardware";
};
nixvim = {
url = "github:nix-community/nixvim";
inputs = {
@ -67,6 +71,7 @@
, home-manager
, impermanence
, lanzaboote
, nixos-hardware
, nixvim
, adtyaxyz
, wiki
@ -129,6 +134,8 @@
system.configurationRevision = nixpkgs.lib.mkIf (self ? rev) self.rev;
}
nixos-hardware.nixosModules.raspberry-pi-4
./common
./hosts/rico1
];
@ -145,6 +152,8 @@
system.configurationRevision = nixpkgs.lib.mkIf (self ? rev) self.rev;
}
nixos-hardware.nixosModules.raspberry-pi-4
./common
./hosts/rico2
];

View file

@ -1,3 +1,5 @@
{ ... }: {
imports = [ ./filesystem.nix ./kernel.nix ];
hardware.raspberry-pi."4".poe-plus-hat.enable = true;
}