This commit is contained in:
Lomig 2025-09-04 10:21:17 +02:00
parent 556e0e1eb2
commit e0a82ee731
49 changed files with 1076 additions and 765 deletions

View file

@ -9,32 +9,28 @@
};
};
outputs = { self, nixpkgs, home-manager, ... }:
let
system = "x86_64-linux";
pkgs = import nixpkgs {
inherit system;
config.allowUnfree = true;
};
in {
nixosConfigurations = {
pennsardin = nixpkgs.lib.nixosSystem {
inherit system;
modules = [
./hosts/pennsardin/configuration.nix
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true ;
# home-manager.useUserPackages = true;
home-manager.users.lomig = import ./user/lomig.nix ;
}
];
};
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
];
};
# --- DevShell (x86_64 uniquement) ---
devShells.x86_64-linux.default = import ./devshell.nix {
pkgs = import nixpkgs {system = "x86_64-linux";};
};
# --- Formatter (x86_64 uniquement) ---
formatter.x86_64-linux =
(import nixpkgs {system = "x86_64-linux";}).alejandra;
};
}
# vim: set ts=2 sw=2 sts=2 et :