mirror of https://gitlab.crans.org/nounous/nixos
33 lines
713 B
Nix
33 lines
713 B
Nix
{
|
|
description = "Configuration NixOS du Crans";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.11";
|
|
flake-parts.url = "github:hercules-ci/flake-parts";
|
|
|
|
# Formatter
|
|
treefmt-nix = {
|
|
url = "github:numtide/treefmt-nix";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
};
|
|
|
|
outputs = inputs @ { self, nixpkgs, flake-parts, ... }:
|
|
flake-parts.lib.mkFlake { inherit inputs; } {
|
|
imports = [
|
|
inputs.treefmt-nix.flakeModule
|
|
];
|
|
|
|
systems = [ "x86_64-linux" ];
|
|
|
|
flake = { };
|
|
|
|
perSystem = { config, ... }: {
|
|
treefmt = {
|
|
projectRootFile = "flake.nix";
|
|
programs.nixpkgs-fmt.enable = true;
|
|
};
|
|
};
|
|
};
|
|
}
|