Add flake.nix

This commit is contained in:
Florian RICHER 2023-02-01 23:36:03 +01:00
parent 339891709c
commit a5186ea3d6
6 changed files with 163 additions and 2 deletions

24
flake.nix Normal file
View file

@ -0,0 +1,24 @@
{
description = "A very basic flake";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
};
outputs = { self, nixpkgs }:
let
system = "x86_64-linux";
pkgs = import nixpkgs {
inherit system;
config.allowUnfree = true;
};
lib = nixpkgs.lib;
in {
nixosConfigurations = {
nixos-desktop = lib.nixosSystem {
inherit system;
modules = [ ./configuration.nix ];
};
};
};
}