70 lines
2.2 KiB
Nix
70 lines
2.2 KiB
Nix
{
|
|
description = "Your new nix config";
|
|
|
|
inputs = {
|
|
hyprswitch.url = "github:h3rmt/hyprswitch/release";
|
|
# Nixpkgs
|
|
nixpkgs-master.url = "github:nixos/nixpkgs/master";
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
|
nixpkgs-stable.url = "github:nixos/nixpkgs/nixos-24.11";
|
|
nixvim = {
|
|
url = "github:nix-community/nixvim";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
# Home manager
|
|
home-manager = {
|
|
url = "github:nix-community/home-manager";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
/* lix-module = {
|
|
url =
|
|
"https://git.lix.systems/lix-project/nixos-module/archive/2.91.0.tar.gz";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
*/
|
|
stylix = { url = "github:danth/stylix"; };
|
|
spicetify-nix = {
|
|
url = "github:Gerg-L/spicetify-nix";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
hyprland-qtutils.url = "github:hyprwm/hyprland-qtutils";
|
|
};
|
|
|
|
outputs = { self, nixpkgs, home-manager, stylix, spicetify-nix, ... }@inputs:
|
|
let
|
|
inherit (self) outputs;
|
|
myHostName = "nixos-msi";
|
|
stevenUserName = "stvnliu";
|
|
in
|
|
{
|
|
# NixOS configuration entrypoint
|
|
# Available through 'nixos-rebuild --flake .#your-hostname'
|
|
nixosConfigurations = {
|
|
"${myHostName}" = nixpkgs.lib.nixosSystem {
|
|
specialArgs = { inherit inputs outputs; };
|
|
modules = [
|
|
./nixos/configuration.nix
|
|
#lix-module.nixosModules.default
|
|
];
|
|
};
|
|
};
|
|
|
|
# Standalone home-manager configuration entrypoint
|
|
# Available through 'home-manager --flake .#your-username@your-hostname'
|
|
homeConfigurations = {
|
|
"${stevenUserName}@${myHostName}" =
|
|
home-manager.lib.homeManagerConfiguration {
|
|
pkgs =
|
|
nixpkgs.legacyPackages.x86_64-linux; # Home-manager requires 'pkgs' instance
|
|
extraSpecialArgs = { inherit inputs outputs; };
|
|
modules = [
|
|
./home-manager/${stevenUserName}/home.nix
|
|
stylix.homeManagerModules.stylix
|
|
inputs.nixvim.homeManagerModules.nixvim
|
|
spicetify-nix.homeManagerModules.default
|
|
|
|
];
|
|
};
|
|
};
|
|
};
|
|
}
|