nixos/flake.nix

42 lines
1,011 B
Nix
Raw Normal View History

2023-08-19 23:40:25 +02:00
{
2023-08-20 00:48:31 +02:00
description = "NixOS configuration of MrDev023";
2023-08-19 23:40:25 +02:00
inputs = {
2024-02-17 14:56:18 +01:00
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
2024-02-17 18:20:01 +01:00
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
2024-02-19 20:17:01 +01:00
2024-04-04 15:19:40 +02:00
nix-flatpak.url = "github:gmodena/nix-flatpak/?ref=v0.4.1";
2023-08-19 23:40:25 +02:00
};
2023-08-20 00:48:31 +02:00
outputs = inputs@{
self,
nixpkgs,
home-manager,
2024-02-19 20:17:01 +01:00
nix-flatpak,
2023-08-20 00:48:31 +02:00
...
2024-04-08 00:06:14 +02:00
}:
let
2024-04-08 00:43:06 +02:00
systems = [
{ name = "nixos-test"; system = "x86_64-linux"; }
{ name = "perso-laptop"; system = "x86_64-linux"; }
{ name = "perso-desktop"; system = "x86_64-linux"; }
2024-04-08 00:06:14 +02:00
];
in {
2024-04-08 00:43:06 +02:00
nixosConfigurations = nixpkgs.lib.foldl (c: s:
c // {
${s.name} = nixpkgs.lib.nixosSystem {
system = s.system;
modules = [
./hosts/${s.name}
home-manager.nixosModules.home-manager
(import ./home/common-home-manager.nix { inherit inputs; })
];
};
}) {} systems;
2023-08-19 23:40:25 +02:00
};
2024-02-02 21:07:29 +01:00
}