nixos-config/flake.nix

54 lines
1.5 KiB
Nix
Raw Normal View History

2025-08-07 01:32:02 +02:00
{
2025-08-31 12:03:52 +02:00
description = "My nixos config with WM switch capacity";
2025-08-07 01:32:02 +02:00
2025-08-31 12:03:52 +02:00
inputs = {
2025-09-05 09:59:31 +02:00
nixpkgs-stable.url = "github:NixOS/nixpkgs/nixos-25.05";
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable-small";
home-manager-stable = {
url = "github:nix-community/home-manager/release-25.05";
inputs.nixpkgs.follows = "nixpkgs-stable";
};
2025-08-31 12:03:52 +02:00
home-manager = {
url = "github:nix-community/home-manager";
2025-09-05 09:59:31 +02:00
inputs.nixpkgs.follows = "nixpkgs-unstable";
2025-08-31 12:03:52 +02:00
};
};
2025-08-07 01:32:02 +02:00
2025-09-04 10:21:17 +02:00
outputs = {
2025-09-05 09:59:31 +02:00
nixpkgs-stable,
nixpkgs-unstable,
home-manager-stable,
2025-09-04 10:21:17 +02:00
home-manager,
...
}: {
# --- Host NixOS (x86_64) ---
2025-09-05 09:59:31 +02:00
nixosConfigurations = {
pennsardin = nixpkgs-unstable.lib.nixosSystem {
system = "x86_64-linux";
modules = [
2025-09-04 10:21:17 +02:00
./hosts/pennsardin/configuration.nix
home-manager.nixosModules.home-manager
# L'utilisateur HM est déclaré dans hosts/pennsardin/configuration.nix
];
};
2025-08-21 11:21:15 +02:00
2025-09-05 09:59:31 +02:00
terre-neuvas = nixpkgs-stable.lib.nixosSystem {
system = "x86_64-linux";
modules = [
./hosts/terre-neuvas/configuration.nix
home-manager-stable.nixosModules.home-manager
];
};
};
2025-09-04 10:21:17 +02:00
# --- DevShell (x86_64 uniquement) ---
devShells.x86_64-linux.default = import ./devshell.nix {
2025-09-05 09:59:31 +02:00
pkgs = import nixpkgs-stable {system = "x86_64-linux";};
2025-08-31 12:03:52 +02:00
};
2025-09-04 10:21:17 +02:00
# --- Formatter (x86_64 uniquement) ---
formatter.x86_64-linux =
2025-09-05 09:59:31 +02:00
(import nixpkgs-stable {system = "x86_64-linux";}).alejandra;
2025-08-31 12:03:52 +02:00
};
2025-08-07 01:32:02 +02:00
}