57 lines
1.4 KiB
Nix
57 lines
1.4 KiB
Nix
{
|
|
description = "Modular and minimalist NixOS configuration";
|
|
|
|
inputs = {
|
|
# nixos
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable-small";
|
|
home-manager.url = "github:nix-community/home-manager";
|
|
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
# spotify
|
|
spicetify-nix.url = "github:Gerg-L/spicetify-nix";
|
|
|
|
# nvim
|
|
nixvim = {
|
|
url = "github:nix-community/nixvim";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
# stylix (thx esteban)
|
|
stylix = {
|
|
url = "github:nix-community/stylix";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
};
|
|
|
|
outputs = inputs @ {
|
|
nixpkgs,
|
|
home-manager,
|
|
stylix,
|
|
spicetify-nix,
|
|
...
|
|
}: {
|
|
nixosConfigurations = {
|
|
nixos = nixpkgs.lib.nixosSystem {
|
|
system = "x86_64-linux";
|
|
specialArgs = {inherit inputs;};
|
|
modules = [
|
|
./nixos/configuration.nix
|
|
home-manager.nixosModules.home-manager
|
|
{
|
|
home-manager.useGlobalPkgs = true;
|
|
home-manager.useUserPackages = true;
|
|
home-manager.users.elisiei = {
|
|
imports = [
|
|
./home/home.nix
|
|
spicetify-nix.homeManagerModules.spicetify
|
|
stylix.homeModules.stylix
|
|
];
|
|
};
|
|
home-manager.backupFileExtension = "hm-backup";
|
|
home-manager.extraSpecialArgs = {inherit inputs;};
|
|
}
|
|
];
|
|
};
|
|
};
|
|
};
|
|
}
|