nixos-config/flake.nix

37 lines
968 B
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 = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable-small";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
};
2025-08-07 01:32:02 +02:00
2025-09-04 10:21:17 +02:00
outputs = {
nixpkgs,
home-manager,
...
}: {
# --- Host NixOS (x86_64) ---
nixosConfigurations.pennsardin = nixpkgs.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
];
};
2025-08-21 11:21:15 +02:00
2025-09-04 10:21:17 +02:00
# --- DevShell (x86_64 uniquement) ---
devShells.x86_64-linux.default = import ./devshell.nix {
pkgs = import nixpkgs {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 =
(import nixpkgs {system = "x86_64-linux";}).alejandra;
2025-08-31 12:03:52 +02:00
};
2025-08-07 01:32:02 +02:00
}