50 lines
1.4 KiB
Nix
50 lines
1.4 KiB
Nix
{
|
|
description = "NixOS configuration";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
|
home-manager = {
|
|
url = "github:nix-community/home-manager";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
nixvim = {
|
|
url = "github:nix-community/nixvim";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
apple-fonts.url = "github:Lyndeno/apple-fonts.nix";
|
|
spicetify-nix.url = "github:the-argus/spicetify-nix";
|
|
homeage = {
|
|
url = "github:jordanisaacs/homeage";
|
|
# Optional
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
};
|
|
|
|
outputs =
|
|
inputs@{ nixpkgs, home-manager, homeage, nixvim, spicetify-nix, ... }: {
|
|
nixosConfigurations = {
|
|
nixy = nixpkgs.lib.nixosSystem {
|
|
system = "x86_64-linux";
|
|
modules = [
|
|
./nixos/configuration.nix
|
|
./hosts
|
|
{ _module.args = { inherit inputs; }; }
|
|
home-manager.nixosModules.home-manager
|
|
{
|
|
home-manager = {
|
|
useGlobalPkgs = true;
|
|
useUserPackages = true;
|
|
users.hadi = import ./home/home.nix; # CHANGEME - replace "hadi"
|
|
extraSpecialArgs = {
|
|
inherit inputs;
|
|
inherit spicetify-nix;
|
|
inherit homeage;
|
|
};
|
|
};
|
|
}
|
|
];
|
|
};
|
|
};
|
|
};
|
|
}
|