1
0
Fork 0
mirror of https://git.sr.ht/~roxwize/.dotfiles synced 2025-05-02 19:53:07 +00:00
This commit is contained in:
Rae 5e 2025-03-03 19:09:08 -05:00
parent a15a59af09
commit 7cdc89ddeb
Signed by: rae
GPG key ID: 5B1A0FAB9BAB81EE
7 changed files with 247 additions and 11 deletions

View file

@ -19,25 +19,25 @@
url = "github:nix-community/fenix";
inputs.nixpkgs.follows = "nixpkgs";
};
# Raspberry Pi support
raspberry-pi-nix.url = "github:nix-community/raspberry-pi-nix";
};
outputs = { self, nixpkgs, home-manager, nix-flatpak, ... }@inputs: {
nixosConfigurations =
let
system = hostname: {
mkSystem = hostname: arch: with nixpkgs; {
name = hostname;
value = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
value = lib.nixosSystem {
system = "${arch}-linux";
specialArgs = { inherit inputs; };
modules = [
nix-flatpak.nixosModules.nix-flatpak
./hosts/${hostname}/configuration.nix
];
modules = [ ./hosts/${hostname}/configuration.nix ];
};
};
in builtins.listToAttrs [
(system "ioides")
(system "qemu")
(mkSystem "ioides" "x86_64") # main pc
(mkSystem "qemu" "x86_64") # emulatr...........
(mkSystem "near" "aarch_64") # raspberry pi 5 home server
];
homeConfigurations.rae = home-manager.lib.homeManagerConfiguration {