configuration.nix/flake.nix

32 lines
792 B
Nix
Raw Normal View History

2023-08-07 10:19:48 +02:00
{
inputs = {
nixpkgs.url = "nixpkgs/nixos-unstable";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
2023-08-07 17:37:18 +02:00
emacs-overlay = {
url = "github:nix-community/emacs-overlay";
inputs.nixpkgs.follows = "nixpkgs";
};
2023-08-07 10:19:48 +02:00
};
2023-08-07 17:37:18 +02:00
outputs = { self, nixpkgs, home-manager, emacs-overlay, ... }: {
2023-08-07 10:19:48 +02:00
nixosConfigurations = {
laptop = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
./sys/laptop
];
};
};
homeConfigurations = {
ivand = home-manager.lib.homeManagerConfiguration {
modules = [ ./home/laptop.nix ];
2023-08-07 17:37:18 +02:00
pkgs = import nixpkgs { system = "x86_64-linux"; overlays = [ emacs-overlay.overlay ]; };
2023-08-07 10:19:48 +02:00
};
};
};
}