nix/flake.nix

31 lines
750 B
Nix

{
description = "A flake using my config";
inputs = {
nixpkgs.url = "nixpkgs/nixos-unstable";
home-manager = {
url = "github:nix-community/home-manager/master";
inputs.nixpkgs.follows = "nixpkgs";
};
hyprland = {
url = "github:hyprwm/Hyprland";
};
};
outputs = { nixpkgs, home-manager, hyprland, ... }:
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 hyprland; };
};
};
}