dotfiles-guix/home/nix/flake.nix

47 lines
1.1 KiB
Nix
Raw Normal View History

2024-11-03 18:28:10 +00:00
{
description = "Freya Nix Flake";
inputs = {
# nixpkgs
2024-12-07 01:45:22 +00:00
nixpkgs.url = "github:nixos/nixpkgs/55d15ad12a74eb7d4646254e13638ad0c4128776";
2024-11-03 18:28:10 +00:00
# home manager
2024-12-07 01:45:22 +00:00
home-manager.url = "github:nix-community/home-manager/d00c6f6d0ad16d598bf7e2956f52c1d9d5de3c3a";
2024-11-03 18:28:10 +00:00
home-manager.inputs.nixpkgs.follows = "nixpkgs";
2024-11-09 23:16:54 +00:00
# nixgl
nixgl.url = "github:nix-community/nixGL/310f8e49a149e4c9ea52f1adf70cdc768ec53f8a";
nixgl.inputs.nixpkgs.follows = "nixpkgs";
2024-11-03 18:28:10 +00:00
};
outputs = {
self,
nixpkgs,
home-manager,
2024-11-09 23:16:54 +00:00
nixgl,
2024-11-03 18:28:10 +00:00
...
} @ inputs: let
inherit (self) outputs;
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
2024-11-09 23:16:54 +00:00
overlays = [
nixgl.overlay
];
2024-11-03 18:28:10 +00:00
in {
homeConfigurations."freya" =
home-manager.lib.homeManagerConfiguration {
inherit pkgs;
extraSpecialArgs = {inherit inputs outputs;};
2024-11-09 23:16:54 +00:00
modules = [
{nixpkgs.overlays = overlays;}
./home.nix
{
_module.args = {
inherit nixgl;
};
}
];
2024-11-03 18:28:10 +00:00
};
};
}