2021-07-11 04:19:34 -06:00
|
|
|
{
|
|
|
|
inputs = {
|
2021-07-17 15:23:13 -06:00
|
|
|
nixos-hardware.url = github:nixos/nixos-hardware;
|
2021-07-15 21:24:38 -06:00
|
|
|
nix = {
|
|
|
|
url = github:IvanMalison/nix/master;
|
2021-07-17 15:23:13 -06:00
|
|
|
inputs.nixpkgs.follows = "my_unstable";
|
2021-07-15 21:24:38 -06:00
|
|
|
};
|
2021-07-17 15:23:13 -06:00
|
|
|
my_unstable = {
|
|
|
|
url = path:./nixpkgs;
|
2021-07-11 04:19:34 -06:00
|
|
|
};
|
2021-07-17 15:23:13 -06:00
|
|
|
home-manager = {
|
|
|
|
url = path:./home-manager;
|
|
|
|
inputs.nixpkgs.follows = "my_unstable";
|
2021-07-11 04:19:34 -06:00
|
|
|
};
|
|
|
|
xmonad-contrib = {
|
|
|
|
url = path:../dotfiles/config/xmonad/xmonad-contrib;
|
2021-07-17 15:23:13 -06:00
|
|
|
inputs.nixpkgs.follows = "my_unstable";
|
2021-07-11 04:19:34 -06:00
|
|
|
};
|
|
|
|
xmonad = {
|
|
|
|
url = path:../dotfiles/config/xmonad/xmonad;
|
2021-07-17 15:23:13 -06:00
|
|
|
inputs.nixpkgs.follows = "my_unstable";
|
2021-07-11 04:19:34 -06:00
|
|
|
};
|
2021-07-17 15:23:13 -06:00
|
|
|
taffybar = {
|
|
|
|
url = path:../dotfiles/config/taffybar/taffybar;
|
|
|
|
inputs.nixpkgs.follows = "my_unstable";
|
2021-07-13 03:37:03 -06:00
|
|
|
};
|
2021-07-11 04:19:34 -06:00
|
|
|
};
|
2021-07-17 15:23:13 -06:00
|
|
|
outputs = {
|
|
|
|
self, nix, my_unstable, nixos-hardware, home-manager, taffybar, xmonad,
|
|
|
|
xmonad-contrib
|
|
|
|
}:
|
2021-07-15 21:24:38 -06:00
|
|
|
let forAll = ({ ... }: {
|
|
|
|
nix = {
|
|
|
|
extraOptions = ''
|
|
|
|
experimental-features = nix-command flakes
|
|
|
|
'';
|
2021-07-17 15:23:13 -06:00
|
|
|
registry.nixpkgs.flake = my_unstable;
|
2021-07-15 21:24:38 -06:00
|
|
|
};
|
|
|
|
nixpkgs.overlays = [
|
2021-07-17 15:23:13 -06:00
|
|
|
nix.overlay taffybar.overlay xmonad.overlay xmonad-contrib.overlay
|
2021-07-15 21:24:38 -06:00
|
|
|
];
|
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 = ({ ... }: {
|
2021-07-17 15:23:13 -06:00
|
|
|
imports = [
|
|
|
|
nixos-hardware.nixosModules.raspberry-pi-4
|
|
|
|
];
|
2021-07-11 11:23:59 -06:00
|
|
|
});
|
2021-07-11 04:19:34 -06:00
|
|
|
in
|
|
|
|
{
|
|
|
|
nixosConfigurations = {
|
2021-07-17 15:23:13 -06:00
|
|
|
ivanm-dfinity-razer = my_unstable.lib.nixosSystem {
|
2021-07-11 16:49:03 -06:00
|
|
|
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-17 15:23:13 -06:00
|
|
|
ryzen-shine = my_unstable.lib.nixosSystem {
|
2021-07-11 04:19:34 -06:00
|
|
|
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
|
|
|
};
|
2021-07-17 15:23:13 -06:00
|
|
|
biskcomp = my_unstable.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
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|