mirror of
https://github.com/deltathetawastaken/dotfiles.git
synced 2025-12-06 07:16:37 +03:00
116 lines
4 KiB
Nix
116 lines
4 KiB
Nix
{
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.11";
|
|
nixpkgs-stable.url = "github:NixOS/nixpkgs/nixos-23.11";
|
|
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
home-manager.url = "github:nix-community/home-manager/release-23.11";
|
|
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
|
home-manager-unstable.url = "github:nix-community/home-manager";
|
|
home-manager-unstable.inputs.nixpkgs.follows = "nixpkgs-unstable";
|
|
firefox.url = "github:nix-community/flake-firefox-nightly";
|
|
firefox.inputs.nixpkgs.follows = "nixpkgs";
|
|
anyrun.url = "github:Kirottu/anyrun";
|
|
anyrun.inputs.nixpkgs.follows = "nixpkgs-unstable";
|
|
telegram-desktop-patched.url = "github:shwewo/telegram-desktop-patched/release-23.11";
|
|
telegram-desktop-patched-unstable.url = "github:shwewo/telegram-desktop-patched";
|
|
agenix.url = "github:ryantm/agenix";
|
|
agenix.inputs.darwin.follows = "";
|
|
};
|
|
|
|
outputs = inputs @ { nixpkgs, nixpkgs-stable, nixpkgs-unstable, home-manager, home-manager-unstable, firefox, anyrun, agenix, ... }: {
|
|
nixosConfigurations.dlaptop = nixpkgs-unstable.lib.nixosSystem {
|
|
system = "x86_64-linux";
|
|
specialArgs = {
|
|
inherit inputs;
|
|
stable = import nixpkgs-stable {
|
|
system = "x86_64-linux";
|
|
config = { allowUnfree = true; };
|
|
};
|
|
unstable = import nixpkgs-unstable {
|
|
system = "x86_64-linux";
|
|
config = { allowUnfree = true; };
|
|
};
|
|
};
|
|
modules = [
|
|
./hosts/generic.nix
|
|
./hosts/dlaptop/configuration.nix
|
|
./hosts/dlaptop/hardware-configuration.nix
|
|
./hosts/dlaptop/age.nix
|
|
home-manager-unstable.nixosModules.home-manager
|
|
agenix.nixosModules.default
|
|
{
|
|
home-manager.useGlobalPkgs = true;
|
|
home-manager.useUserPackages = true;
|
|
home-manager.users.delta = import ./home/home.nix;
|
|
home-manager.extraSpecialArgs = {
|
|
inherit inputs;
|
|
stable = import nixpkgs-stable {
|
|
system = "x86_64-linux";
|
|
config = { allowUnfree = true; };
|
|
};
|
|
unstable = import nixpkgs-unstable {
|
|
system = "x86_64-linux";
|
|
config = { allowUnfree = true; };
|
|
};
|
|
};
|
|
}
|
|
];
|
|
};
|
|
nixosConfigurations.intelnuc = nixpkgs-unstable.lib.nixosSystem {
|
|
system = "x86_64-linux";
|
|
specialArgs = {
|
|
inherit inputs;
|
|
stable = import nixpkgs-stable {
|
|
system = "x86_64-linux";
|
|
config = { allowUnfree = true; };
|
|
};
|
|
unstable = import nixpkgs-unstable {
|
|
system = "x86_64-linux";
|
|
config = { allowUnfree = true; };
|
|
};
|
|
};
|
|
modules = [
|
|
./hosts/generic.nix
|
|
./hosts/intelnuc/configuration.nix
|
|
./hosts/intelnuc/hardware-configuration.nix
|
|
];
|
|
};
|
|
nixosConfigurations.huanan = nixpkgs-unstable.lib.nixosSystem {
|
|
system = "x86_64-linux";
|
|
specialArgs = {
|
|
inherit inputs;
|
|
stable = import nixpkgs-stable {
|
|
system = "x86_64-linux";
|
|
config = { allowUnfree = true; };
|
|
};
|
|
unstable = import nixpkgs-unstable {
|
|
system = "x86_64-linux";
|
|
config = { allowUnfree = true; };
|
|
};
|
|
};
|
|
modules = [
|
|
./hosts/generic.nix
|
|
./hosts/huanan/configuration.nix
|
|
./hosts/huanan/hardware-configuration.nix
|
|
home-manager-unstable.nixosModules.home-manager
|
|
{
|
|
home-manager.useGlobalPkgs = true;
|
|
home-manager.useUserPackages = true;
|
|
home-manager.users.delta = import ./home/home.nix;
|
|
home-manager.extraSpecialArgs = {
|
|
inherit inputs;
|
|
stable = import nixpkgs-stable {
|
|
system = "x86_64-linux";
|
|
config = { allowUnfree = true; };
|
|
};
|
|
unstable = import nixpkgs-unstable {
|
|
system = "x86_64-linux";
|
|
config = { allowUnfree = true; };
|
|
};
|
|
};
|
|
}
|
|
];
|
|
};
|
|
};
|
|
}
|