Warning
Page under construction
GLF OS exists in two branches, the stable branch and the testing branch. It is possible to switch between the two fairly easily.
/etc/nixos/flake.nix{
description = "GLF-OS ISO Configuration - Installer Evaluation Flake";
inputs = {
glf-channels.url = "git+https://framagit.org/gaming-linux-fr/glf-os/channels-glfos/testing-channels.git?ref=main"; #Repos responsable de la bascule d'une stable à une autre
nixpkgs.follows = "glf-channels/nixpkgs";
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
glf.url = "git+https://framagit.org/gaming-linux-fr/glf-os/glf-os.git?ref=testing"; # Référence le flake racine
};
outputs =
{
nixpkgs,
nixpkgs-unstable,
glf,
self,
...
}:
let
system = "x86_64-linux";
# Configuration pour le nixpkgs stable (sera le 'pkgs' par défaut)
pkgsStable = import nixpkgs {
inherit system;
config.allowUnfree = true;
};
# Configuration pour le nixpkgs unstable (sera passé en argument spécial)
pkgsUnstable = import nixpkgs-unstable {
inherit system;
config.allowUnfree = true;
};
in
{
nixosConfigurations."GLF-OS" = nixpkgs.lib.nixosSystem {
inherit system; # Maintenant 'system' est défini
pkgs = pkgsStable;
modules = [
./configuration.nix
glf.nixosModules.default
];
specialArgs = {
pkgs-unstable = pkgsUnstable;
};
};
};
}
ctrl+sglf-update/etc/nixos/flake.nix{
description = "GLF-OS ISO Configuration - Installer Evaluation Flake";
inputs = {
glf-channels.url = "git+https://framagit.org/gaming-linux-fr/glf-os/channels-glfos/glf-os-channels.git?ref=main"; #Repos responsable de la bascule d'une stable à une autre
nixpkgs.follows = "glf-channels/nixpkgs";
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
glf.url = "git+https://framagit.org/gaming-linux-fr/glf-os/glf-os.git?ref=main"; # Référence le flake racine
};
outputs =
{
nixpkgs,
nixpkgs-unstable,
glf,
self,
...
}:
let
system = "x86_64-linux";
# Configuration pour le nixpkgs stable (sera le 'pkgs' par défaut)
pkgsStable = import nixpkgs {
inherit system;
config.allowUnfree = true;
};
# Configuration pour le nixpkgs unstable (sera passé en argument spécial)
pkgsUnstable = import nixpkgs-unstable {
inherit system;
config.allowUnfree = true;
};
in
{
nixosConfigurations."GLF-OS" = nixpkgs.lib.nixosSystem {
inherit system; # Maintenant 'system' est défini
pkgs = pkgsStable;
modules = [
./configuration.nix
glf.nixosModules.default
];
specialArgs = {
pkgs-unstable = pkgsUnstable;
};
};
};
}
ctrl+sglf-update© 2025 GLF