nix/flake.nix
2023-05-07 09:19:14 +01:00

39 lines
939 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";
userName = "Tristan Beedell";
in
{
nixosConfigurations = {
zenix = mkConf "zenix" {
inherit pkgs nixpkgs system user userName home-manager hyprland;
};
FCS-Tristan-Nixbook = mkConf "work" {
inherit pkgs nixpkgs system user userName home-manager hyprland;
laptop = true;
work = true;
};
};
};
}