configuration.nix/flake.nix

59 lines
1.4 KiB
Nix
Raw Normal View History

2023-08-07 10:19:48 +02:00
{
inputs = {
2024-04-19 14:56:38 +02:00
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
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-11-18 07:42:50 +01:00
ide = {
2023-11-18 07:49:05 +01:00
url = "github:ivandimitrov8080/flake-ide";
2023-11-18 07:42:50 +01:00
inputs.nixpkgs.follows = "nixpkgs";
};
2024-04-21 14:59:19 +02:00
swhkd = {
url = "github:ivandimitrov8080/swhkd";
inputs.nixpkgs.follows = "nixpkgs";
};
2024-01-07 12:33:29 +01:00
nid = {
url = "github:nix-community/nix-index-database";
inputs.nixpkgs.follows = "nixpkgs";
};
2023-08-07 10:19:48 +02:00
};
2024-04-21 14:59:19 +02:00
outputs = { self, nixpkgs, home-manager, hosts, ide, swhkd, nid, ... }:
2023-11-04 12:48:07 +01:00
let
system = "x86_64-linux";
2024-04-21 14:59:19 +02:00
overlays = [
(
self: super: {
scripts = (super.buildEnv { name = "scripts"; paths = [ ./. ]; });
swhkd = swhkd.overlays.${system}.default;
}
)
];
2023-11-18 08:27:55 +01:00
pkgs = import nixpkgs {
2024-04-21 14:59:19 +02:00
inherit system overlays;
2023-11-18 08:27:55 +01:00
};
modules = import ./modules {
2024-04-21 14:59:19 +02:00
inherit system nixpkgs pkgs ide;
2023-11-18 08:27:55 +01:00
};
home = import ./home {
2024-01-07 12:33:29 +01:00
inherit system pkgs modules home-manager nid;
2023-11-18 08:27:55 +01:00
};
2023-11-18 08:34:47 +01:00
nixos = import ./nixos {
inherit system nixpkgs modules hosts;
};
2023-11-04 12:48:07 +01:00
in
2023-09-19 19:48:24 +02:00
{
2023-08-16 08:03:48 +02:00
nixosConfigurations = {
2023-11-18 08:34:47 +01:00
laptop = nixos.laptop;
2023-08-07 10:19:48 +02:00
};
2023-08-16 08:03:48 +02:00
homeConfigurations = {
2023-11-18 08:23:16 +01:00
ivand = home.ivand;
2023-08-07 10:19:48 +02:00
};
2023-11-18 11:39:46 +01:00
modules = modules;
2023-08-07 10:19:48 +02:00
};
}