configuration.nix/flake.nix

50 lines
1.0 KiB
Nix
Raw Normal View History

2023-08-07 10:19:48 +02:00
{
inputs = {
2023-11-03 15:43:48 +01:00
nixpkgs.url = "github:NixOS/nixpkgs";
2023-08-07 10:19:48 +02:00
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
2023-11-01 19:02:35 +01:00
hosts = {
url = "github:StevenBlack/hosts";
inputs.nixpkgs.follows = "nixpkgs";
};
2023-08-07 10:19:48 +02:00
};
2023-08-16 18:45:51 +02:00
outputs =
{ self
, nixpkgs
, home-manager
2023-11-01 19:02:35 +01:00
, hosts
2023-08-16 18:45:51 +02:00
, ...
2023-09-19 19:48:24 +02:00
}:
2023-11-04 12:48:07 +01:00
let
system = "x86_64-linux";
my-overlay = self: super: {
scripts = (super.buildEnv { name = "scripts"; paths = [ ./scripts ]; });
};
in
2023-09-19 19:48:24 +02:00
{
2023-08-16 08:03:48 +02:00
nixosConfigurations = {
laptop = nixpkgs.lib.nixosSystem {
2023-09-19 19:48:24 +02:00
inherit system;
2023-08-16 08:03:48 +02:00
modules = [
2023-09-19 19:48:24 +02:00
./sys/laptop
2023-11-01 19:02:35 +01:00
hosts.nixosModule
2023-08-16 08:03:48 +02:00
];
};
2023-08-07 10:19:48 +02:00
};
2023-08-16 08:03:48 +02:00
homeConfigurations = {
ivand = home-manager.lib.homeManagerConfiguration {
2023-09-19 19:48:24 +02:00
modules = [
./home/laptop
];
2023-08-16 08:03:48 +02:00
pkgs = import nixpkgs {
2023-09-19 19:48:24 +02:00
inherit system;
2023-11-04 12:48:07 +01:00
overlays = [ my-overlay ];
2023-08-16 08:03:48 +02:00
};
};
2023-08-07 10:19:48 +02:00
};
};
}