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" "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": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1699099776, "lastModified": 1699099776,
@ -450,6 +465,7 @@
"if3": "if3", "if3": "if3",
"impermanence": "impermanence", "impermanence": "impermanence",
"lanzaboote": "lanzaboote", "lanzaboote": "lanzaboote",
"nixos-hardware": "nixos-hardware",
"nixpkgs": "nixpkgs", "nixpkgs": "nixpkgs",
"nixvim": "nixvim", "nixvim": "nixvim",
"wiki": "wiki" "wiki": "wiki"

View file

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

View file

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