config/flake.nix

47 lines
1 KiB
Nix
Raw Normal View History

2023-12-28 21:33:09 -08:00
{
description = "My first flake!";
inputs = {
nixpkgs.url = "nixpkgs/nixos-23.11";
home-manager = {
url = "github:nix-community/home-manager/release-23.11";
inputs.nixpkgs.follows = "nixpkgs";
};
2024-01-29 01:53:47 -08:00
# hyprland.url = "github:hyprwm/Hyprland";
# hyprland-plugins = {
# url = "github:hyprwm/hyprland-plugins";
# inputs.hyprland.follows = "hyprland";
# };
2023-12-28 21:33:09 -08:00
# use the following for unstable:
# nixpkgs.url = "nixpkgs/nixos-unstable";
# or any branch you want:
# nixpkgs.url = "nixpkgs/{BRANCH-NAME}"
};
2024-01-29 01:53:47 -08:00
outputs = {
self,
home-manager,
nixpkgs,
...
}: let
system = "x86_64-linux";
lib = nixpkgs.lib;
pkgs = nixpkgs.legacyPackages.${system};
in {
nixosConfigurations = {
nmarks = lib.nixosSystem {
inherit system;
modules = [./configuration.nix];
2023-12-28 21:33:09 -08:00
};
};
2024-01-29 01:53:47 -08:00
homeConfigurations = {
nmarks = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
modules = [./home.nix];
2023-12-28 21:33:09 -08:00
};
2024-01-29 01:53:47 -08:00
};
2023-12-28 21:33:09 -08:00
};
}