nix/flake.nix
2023-04-15 12:46:15 +01:00

26 lines
663 B
Nix

{
description = "A flake using my config";
inputs = {
nixpkgs.url = "nixpkgs/nixos-unstable";
home-manager.url = "github:nix-community/home-manager/master";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
};
outputs = { nixpkgs, home-manager, ... }:
let
system = "x86_64-linux";
pkgs = import nixpkgs {
inherit system;
};
lib = nixpkgs.lib;
mkConf = import ./lib/mkconf.nix;
user = "tristan";
in {
nixosConfigurations = {
zenix = mkConf "zenix" { inherit nixpkgs system user home-manager; };
FCS-Tristan-Nixbook = mkConf "work" { inherit nixpkgs system user home-manager; };
};
};
}