configuration.nix/flake.nix

57 lines
1.2 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-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";
};
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-11-18 07:42:50 +01:00
, ide
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: {
2023-11-09 10:40:33 +01:00
scripts = (super.buildEnv { name = "scripts"; paths = [ ./. ]; });
2023-11-04 12:48:07 +01:00
};
2023-11-18 08:23:16 +01:00
home = import ./home/default.nix
{
inherit system nixpkgs my-overlay home-manager ide;
modules = import ./modules {
inherit system nixpkgs ide my-overlay;
};
};
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 = {
laptop = nixpkgs.lib.nixosSystem {
2023-09-19 19:48:24 +02:00
inherit system;
2023-08-16 08:03:48 +02:00
modules = [
2023-11-07 17:41:23 +01:00
./hardware-configuration.nix
2023-09-19 19:48:24 +02:00
./sys/laptop
2023-11-07 17:41:23 +01:00
./modules/dnscrypt
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 = {
2023-11-18 08:23:16 +01:00
ivand = home.ivand;
vid = home.vid;
2023-08-07 10:19:48 +02:00
};
};
}