mirror of
https://github.com/danbulant/dotfiles
synced 2026-05-19 04:18:55 +00:00
60 lines
2.1 KiB
Nix
60 lines
2.1 KiB
Nix
{
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11";
|
|
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
zen-browser.url = "github:MarceColl/zen-browser-flake";
|
|
nixos-hardware.url = "github:NixOS/nixos-hardware";
|
|
#hyprland.url = "github:hyprwm/Hyprland/v0.44.1-b";
|
|
hyprland.url = "github:hyprwm/Hyprland/v0.48.1";
|
|
hyprland-plugins = {
|
|
url = "github:hyprwm/hyprland-plugins";
|
|
# inputs.hyprland.follows = "hyprland";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
# suyu = {
|
|
# url = "git+https://git.suyu.dev/suyu/nix-flake";
|
|
# inputs.nixpkgs.follows = "nixpkgs";
|
|
# };
|
|
home-manager = {
|
|
url = "github:nix-community/home-manager/release-24.11";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
nix-gaming.url = "github:fufexan/nix-gaming";
|
|
|
|
nix-index-database.url = "github:nix-community/nix-index-database";
|
|
nix-index-database.inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
outputs = { nixpkgs, hyprland-plugins, hyprland, home-manager, nixpkgs-unstable, nix-gaming,/* suyu, */nix-index-database, ... }@attrs: {
|
|
nixosConfigurations.lenovo-nix = nixpkgs.lib.nixosSystem {
|
|
system = "x86_64-linux";
|
|
specialArgs = attrs;
|
|
modules = [
|
|
# ./obs.nix # doesn't work. Use nix-shell -p obs-studio instead
|
|
home-manager.nixosModules.home-manager {
|
|
home-manager.useGlobalPkgs = true;
|
|
home-manager.useUserPackages = true;
|
|
home-manager.users.dan = (import ./home.nix) { inherit nixpkgs-unstable nix-gaming /*suyu */hyprland-plugins hyprland; };
|
|
home-manager.backupFileExtension = "backup";
|
|
}
|
|
./configuration.nix
|
|
nix-index-database.nixosModules.nix-index
|
|
{ programs.nix-index-database.comma.enable = true; }
|
|
];
|
|
};
|
|
|
|
# homeConfigurations.lenovo-nix = home-manager.lib.homeManagerConfiguration {
|
|
# pkgs = import nixpkgs {
|
|
# system = "x86_64-linux";
|
|
# config.allowUnfree = true;
|
|
# };
|
|
|
|
# extraSpecialArgs = {inherit attrs;};
|
|
|
|
# modules = [
|
|
# ./home.nix
|
|
# ];
|
|
# };
|
|
};
|
|
}
|