52 lines
1.2 KiB
Nix
52 lines
1.2 KiB
Nix
![]() |
{
|
||
|
description = "System configuration flake.";
|
||
|
|
||
|
inputs = {
|
||
|
home-manager = {
|
||
|
url = "github:nix-community/home-manager";
|
||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||
|
};
|
||
|
spicetify = {
|
||
|
url = "github:Gerg-L/spicetify-nix";
|
||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||
|
};
|
||
|
nixvim = {
|
||
|
url = "github:nix-community/nixvim";
|
||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||
|
};
|
||
|
};
|
||
|
|
||
|
outputs = {
|
||
|
self,
|
||
|
nixpkgs,
|
||
|
home-manager,
|
||
|
...
|
||
|
} @ inputs: {
|
||
|
formatter."x86_64-linux" = nixpkgs.legacyPackages.x86_64-linux.alejandra;
|
||
|
nixosConfigurations.nixos = nixpkgs.lib.nixosSystem {
|
||
|
specialArgs = {inherit inputs;};
|
||
|
system = "x86_64-linux";
|
||
|
modules = [
|
||
|
./configuration.nix
|
||
|
|
||
|
home-manager.nixosModules.home-manager
|
||
|
{
|
||
|
home-manager = {
|
||
|
useGlobalPkgs = true;
|
||
|
useUserPackages = true;
|
||
|
extraSpecialArgs = {inherit inputs;};
|
||
|
users.kaitotlex = {
|
||
|
imports = [
|
||
|
./home.nix
|
||
|
./spicetify.nix
|
||
|
inputs.nixvim.homeManagerModules.nixvim
|
||
|
#./nixvim.nix
|
||
|
];
|
||
|
};
|
||
|
};
|
||
|
}
|
||
|
];
|
||
|
};
|
||
|
};
|
||
|
}
|