49 lines
1.0 KiB
Nix
Raw Normal View History

2025-02-09 23:25:13 -05:00
{
description = "My system configuration";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
nixgl.url = "github:nix-community/nixGL";
nixgl.inputs.nixpkgs.follows = "nixpkgs";
2025-02-10 01:17:58 -05:00
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
2025-02-09 23:25:13 -05:00
};
outputs =
{
nixpkgs,
nixgl,
2025-02-10 01:17:58 -05:00
home-manager,
2025-02-09 23:25:13 -05:00
...
}:
let
system = "x86_64-linux";
pkgs = import nixpkgs {
inherit system;
overlays = [ nixgl.overlay ];
};
2025-02-09 23:25:13 -05:00
in
# pkgs = nixpkgs.legacyPackages.${system};
2025-02-09 23:25:13 -05:00
{
2025-02-10 01:17:58 -05:00
defaultPackage.${system} = home-manager.defaultPackage.${system};
homeConfigurations."deck" = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
2025-02-09 23:25:13 -05:00
extraSpecialArgs = { inherit nixgl; };
modules = [
./home.nix
{ nixpkgs.overlays = [ nixgl.overlay ]; }
];
2025-02-10 01:17:58 -05:00
};
2025-02-09 23:25:13 -05:00
};
2025-02-10 01:17:58 -05:00
nixConfig = {
experimental-features = [
"nix-command"
"flakes"
];
};
2025-02-09 23:25:13 -05:00
}