mirror of
https://github.com/deltathetawastaken/dotfiles.git
synced 2025-12-06 07:16:37 +03:00
49 lines
2 KiB
Nix
49 lines
2 KiB
Nix
{
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
nixpkgs-stable.url = "github:NixOS/nixpkgs/nixos-23.11";
|
|
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
nixpkgs-2105.url = "github:NixOS/nixpkgs/nixos-21.05";
|
|
home-manager.url = "github:nix-community/home-manager";
|
|
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
|
anyrun.url = "github:Kirottu/anyrun";
|
|
anyrun.inputs.nixpkgs.follows = "nixpkgs-unstable";
|
|
telegram-desktop-patched.url = "github:shwewo/telegram-desktop-patched";
|
|
secrets.url = "git+ssh://git@github.com/deltathetawastaken/secrets.git";
|
|
};
|
|
|
|
outputs = inputs @ { self, nixpkgs, home-manager, anyrun, ... }:
|
|
let
|
|
pkgs = nixpkgs.legacyPackages."x86_64-linux";
|
|
stable = import inputs.nixpkgs-stable { system = "x86_64-linux"; config = { allowUnfree = true; }; };
|
|
unstable = import inputs.nixpkgs-unstable { system = "x86_64-linux"; config = { allowUnfree = true; }; };
|
|
specialArgs = { inherit inputs self stable unstable homeSettings; };
|
|
homeSettings = {
|
|
home-manager.useGlobalPkgs = true;
|
|
home-manager.useUserPackages = true;
|
|
home-manager.users.delta = import ./home/home.nix;
|
|
home-manager.extraSpecialArgs = specialArgs;
|
|
};
|
|
in {
|
|
devShells."x86_64-linux".default = pkgs.mkShell {
|
|
name = "delta";
|
|
packages = with pkgs; [ gitleaks pre-commit ];
|
|
shellHook = ''pre-commit install &> /dev/null && gitleaks detect -v'';
|
|
};
|
|
nixosConfigurations.dlaptop = nixpkgs.lib.nixosSystem {
|
|
system = "x86_64-linux";
|
|
specialArgs = specialArgs;
|
|
modules = [ ./hosts/generic.nix ./hosts/dlaptop/system.nix ];
|
|
};
|
|
nixosConfigurations.intelnuc = nixpkgs.lib.nixosSystem {
|
|
system = "x86_64-linux";
|
|
specialArgs = specialArgs;
|
|
modules = [ ./hosts/generic.nix ./hosts/intelnuc/system.nix ];
|
|
};
|
|
nixosConfigurations.huanan = nixpkgs.lib.nixosSystem {
|
|
system = "x86_64-linux";
|
|
specialArgs = specialArgs;
|
|
modules = [ ./hosts/generic.nix ./hosts/huanan/system.nix ];
|
|
};
|
|
};
|
|
} |