Files
nix-config/flake.nix
2026-01-28 15:27:20 +01:00

52 lines
1.4 KiB
Nix

{
description = "Weckyy702's (hopefully nice) NixOS config";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-25.11";
home-manager.url = "github:nix-community/home-manager/release-25.11";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
nixvim.url = "github:nix-community/nixvim/nixos-25.11";
nixvim.inputs.nixpkgs.follows = "nixpkgs";
zen-browser = {
url = "github:youwen5/zen-browser-flake";
inputs.nixpkgs.follows = "nixpkgs";
};
catppuccin.url = "github:catppuccin/nix/release-25.11";
catppuccin.inputs.nixpkgs.follows = "nixpkgs";
spicetify-nix.url = "github:Gerg-L/spicetify-nix";
spicetify-nix.inputs.nixpkgs.follows = "nixpkgs";
};
outputs = {
self,
nixpkgs,
home-manager,
nixvim,
...
} @ inputs: {
nixosConfigurations.keith = let
hostname = "keith";
username = "weckyy702";
specialArgs = {
inherit inputs;
inherit hostname;
inherit username;
};
in
nixpkgs.lib.nixosSystem {
inherit specialArgs;
modules = [
./configuration.nix
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.extraSpecialArgs = specialArgs;
home-manager.users.${username} = import ./home/home.nix;
}
];
};
};
}