confix/flake.nix

36 lines
838 B
Nix

{
description = "Personal NixOS/Home-Manager Configuration";
nixConfig = {
experimental-features = [ "nix-command" "flakes" ];
};
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = inputs @ { self, nixpkgs, home-manager }:
let
system = "x86_64-linux";
user = {
name = "ii";
long = "iiogama";
email = "iiogama@0x212.org";
};
pkgs = import nixpkgs {
inherit system;
config.allowUnfree = true;
};
lib = nixpkgs.lib;
in {
nixosConfigurations = (
import ./hosts {
inherit (nixpkgs) lib;
inherit inputs system home-manager user;
}
);
};
#
}