53 lines
1.5 KiB
Nix
53 lines
1.5 KiB
Nix
{
|
|
description = "My nixos config with WM switch capacity";
|
|
|
|
inputs = {
|
|
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";
|
|
};
|
|
home-manager = {
|
|
url = "github:nix-community/home-manager";
|
|
inputs.nixpkgs.follows = "nixpkgs-unstable";
|
|
};
|
|
};
|
|
|
|
outputs = {
|
|
nixpkgs-stable,
|
|
nixpkgs-unstable,
|
|
home-manager-stable,
|
|
home-manager,
|
|
...
|
|
}: {
|
|
# --- Host NixOS (x86_64) ---
|
|
nixosConfigurations = {
|
|
pennsardin = nixpkgs-unstable.lib.nixosSystem {
|
|
system = "x86_64-linux";
|
|
modules = [
|
|
./hosts/pennsardin/configuration.nix
|
|
home-manager.nixosModules.home-manager
|
|
# L'utilisateur HM est déclaré dans hosts/pennsardin/configuration.nix
|
|
];
|
|
};
|
|
|
|
terre-neuvas = nixpkgs-stable.lib.nixosSystem {
|
|
system = "x86_64-linux";
|
|
modules = [
|
|
./hosts/terre-neuvas/configuration.nix
|
|
home-manager-stable.nixosModules.home-manager
|
|
];
|
|
};
|
|
};
|
|
|
|
# --- DevShell (x86_64 uniquement) ---
|
|
devShells.x86_64-linux.default = import ./devshell.nix {
|
|
pkgs = import nixpkgs-stable {system = "x86_64-linux";};
|
|
};
|
|
|
|
# --- Formatter (x86_64 uniquement) ---
|
|
formatter.x86_64-linux =
|
|
(import nixpkgs-stable {system = "x86_64-linux";}).alejandra;
|
|
};
|
|
}
|