dotfiles/nixos/flake.nix

52 lines
1.4 KiB
Nix
Raw Normal View History

2021-07-11 04:19:34 -06:00
{
inputs = {
nixpkgs = {
url = github:IvanMalison/nixpkgs/my-unstable;
};
taffybar = {
url = path:../dotfiles/config/taffybar/taffybar;
};
xmonad-contrib = {
url = path:../dotfiles/config/xmonad/xmonad-contrib;
};
xmonad = {
url = path:../dotfiles/config/xmonad/xmonad;
};
nixos-hardware.url = github:nixos/nixos-hardware;
2021-07-13 03:37:03 -06:00
home-manager = {
url = github:IvanMalison/home-manager;
inputs.nixpkgs.follows = "nixpkgs";
};
2021-07-11 04:19:34 -06:00
};
2021-07-13 03:37:03 -06:00
outputs = { self, nixpkgs, nixos-hardware, home-manager, taffybar, xmonad, xmonad-contrib }:
let forAll = ({...}: {
2021-07-11 04:19:34 -06:00
nix.registry.nixpkgs.flake = nixpkgs;
nixpkgs.overlays = [ taffybar.overlay xmonad.overlay xmonad-contrib.overlay ];
2021-07-13 03:37:03 -06:00
imports = [
home-manager.nixosModule
];
2021-07-11 04:19:34 -06:00
});
2021-07-11 11:23:59 -06:00
piHardware = ({ ... }: {
imports = [
nixos-hardware.nixosModules.raspberry-pi-4
];
});
2021-07-11 04:19:34 -06:00
in
{
nixosConfigurations = {
2021-07-11 16:49:03 -06:00
ivanm-dfinity-razer = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
2021-07-13 03:37:03 -06:00
modules = [ forAll ./machines/ivanm-dfinity-razer.nix ];
2021-07-11 16:49:03 -06:00
};
2021-07-11 04:19:34 -06:00
ryzen-shine = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
2021-07-13 03:37:03 -06:00
modules = [ forAll ./machines/ryzen-shine.nix ];
2021-07-11 04:19:34 -06:00
};
biskcomp = nixpkgs.lib.nixosSystem {
2021-07-11 11:23:59 -06:00
system = "aarch64-linux";
2021-07-13 03:37:03 -06:00
modules = [ forAll piHardware ./machines/biskcomp.nix ];
2021-07-11 04:19:34 -06:00
};
};
};
}