This commit is contained in:
Leonardo Eugênio 2022-06-10 00:22:53 -03:00
parent be46d2acf1
commit 80ce1788b3
3 changed files with 74 additions and 0 deletions

25
flake.nix Normal file
View file

@ -0,0 +1,25 @@
{
description = "My system config";
inputs = {
nixpkgs.url = "nixpkgs/nixos-22.05";
home-manager.url = "github:nix-community/home-manager/release-22.05";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
};
outputs = { nixpkgs, home-manager, ... }:
let
system = "x86_64-linux";
pkgs = import nixpkgs {
inherit system;
config = { allowUnfree = true; };
};
lib = nixpkgs.lib;
in {
nixosConfigurations = {
i15 = lib.nixosSystem {
inherit system;
modules = [ ./system/configuration.nix ];
};
};
};
}