ADD: terre-neuvas server
This commit is contained in:
parent
e0a82ee731
commit
4f411004e6
12 changed files with 247 additions and 25 deletions
33
flake.nix
33
flake.nix
|
|
@ -2,35 +2,52 @@
|
|||
description = "My nixos config with WM switch capacity";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable-small";
|
||||
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";
|
||||
inputs.nixpkgs.follows = "nixpkgs-unstable";
|
||||
};
|
||||
};
|
||||
|
||||
outputs = {
|
||||
nixpkgs,
|
||||
nixpkgs-stable,
|
||||
nixpkgs-unstable,
|
||||
home-manager-stable,
|
||||
home-manager,
|
||||
...
|
||||
}: {
|
||||
# --- Host NixOS (x86_64) ---
|
||||
nixosConfigurations.pennsardin = nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
modules = [
|
||||
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 {system = "x86_64-linux";};
|
||||
pkgs = import nixpkgs-stable {system = "x86_64-linux";};
|
||||
};
|
||||
|
||||
# --- Formatter (x86_64 uniquement) ---
|
||||
formatter.x86_64-linux =
|
||||
(import nixpkgs {system = "x86_64-linux";}).alejandra;
|
||||
(import nixpkgs-stable {system = "x86_64-linux";}).alejandra;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue