boxen/flake.nix

42 lines
1.3 KiB
Nix
Raw Normal View History

2021-05-24 08:33:02 +00:00
{
description = "My NixOS configuration";
2021-05-24 08:33:02 +00:00
inputs = {
nixos.url = "nixpkgs/nixos-unstable";
2021-05-24 09:23:07 +00:00
2021-05-24 08:33:02 +00:00
home-manager.url = "github:nix-community/home-manager";
home-manager.inputs.nixpkgs.follows = "nixos";
2021-05-24 09:23:07 +00:00
nur.url = "github:nix-community/NUR";
2021-05-25 09:11:06 +00:00
emacs-overlay.url = "github:nix-community/emacs-overlay";
2021-06-24 19:26:06 +00:00
sc3plugins.url = "git+https://tildegit.org/petrichor/sc3plugins-nix.git?ref=main";
sc3plugins.inputs.nixpkgs.follows = "nixos";
2021-05-24 08:33:02 +00:00
};
2021-06-24 19:26:06 +00:00
outputs = { self, nixos, home-manager, nur, emacs-overlay, sc3plugins }@inputs: {
2021-05-24 08:33:02 +00:00
nixosConfigurations = nixos.lib.attrsets.genAttrs [ "arianrhod" "gwydion" ]
2021-06-08 16:03:20 +00:00
(hostName:
nixos.lib.nixosSystem {
system = "x86_64-linux";
modules = [
./configuration.nix
2021-06-08 16:03:20 +00:00
(./hosts + "/${hostName}")
(./secrets + "/${hostName}.nix")
2021-06-24 19:26:06 +00:00
{ nixpkgs.overlays = [ nur.overlay emacs-overlay.overlay
(final: prev: { inherit (sc3plugins.packages.x86_64-linux) supercolliderWithPlugins; })]; }
2021-06-08 16:03:20 +00:00
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = false;
2021-06-01 13:24:14 +00:00
home-manager.users.jez = import ./home;
}
];
2021-06-08 16:03:20 +00:00
specialArgs = { inherit inputs hostName; };
});
2021-05-24 08:33:02 +00:00
};
}