KaitoianOS/flake.nix

49 lines
1.1 KiB
Nix
Raw Normal View History

2024-09-03 18:05:41 -07:00
{
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";
};
2024-09-15 14:59:57 -07:00
nixvim.url = "github:KaitoTLex/neovim-flake";
2024-09-03 18:24:51 -07:00
};
2024-09-03 18:05:41 -07:00
2024-09-03 18:24:51 -07:00
outputs =
{
nixpkgs,
home-manager,
...
}@inputs:
{
formatter."x86_64-linux" = nixpkgs.legacyPackages.x86_64-linux.nixfmt-rfc-style;
nixosConfigurations.shiroko = nixpkgs.lib.nixosSystem {
2024-09-03 18:24:51 -07:00
specialArgs = {
inherit inputs;
};
system = "x86_64-linux";
modules = [
./hosts/shiroko
2024-09-03 18:24:51 -07:00
home-manager.nixosModules.home-manager
{
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
backupFileExtension = "backup";
2024-09-03 18:24:51 -07:00
extraSpecialArgs = {
inherit inputs;
};
users.kaitotlex = {
imports = [ ./users/kaitotlex ];
2024-09-03 18:24:51 -07:00
};
2024-09-03 18:05:41 -07:00
};
2024-09-03 18:24:51 -07:00
}
];
};
2024-09-03 18:05:41 -07:00
};
}