2023-10-12 00:27:24 +05:30
|
|
|
{
|
|
|
|
outputs = {
|
|
|
|
self,
|
|
|
|
nixpkgs,
|
|
|
|
...
|
|
|
|
} @ inputs: let
|
2023-12-08 10:08:21 +05:30
|
|
|
inherit (self) outputs;
|
|
|
|
stateVersion = "23.11";
|
|
|
|
libx = import ./lib {inherit inputs outputs stateVersion;};
|
2023-10-12 00:27:24 +05:30
|
|
|
in {
|
2023-12-08 10:08:21 +05:30
|
|
|
homeConfigurations = {
|
|
|
|
"chnmy@hades" = libx.mkHome {
|
|
|
|
hostname = "hades";
|
|
|
|
username = "chnmy";
|
|
|
|
desktop = "gnome";
|
|
|
|
};
|
|
|
|
"blurryface@trench" = libx.mkHome {
|
|
|
|
hostname = "trench";
|
|
|
|
username = "blurryface";
|
2023-10-12 00:27:24 +05:30
|
|
|
};
|
|
|
|
};
|
2023-12-08 10:08:21 +05:30
|
|
|
nixosConfigurations = {
|
|
|
|
hades = libx.mkHost {
|
|
|
|
hostname = "hades";
|
|
|
|
username = "chnmy";
|
|
|
|
desktop = "gnome";
|
|
|
|
};
|
|
|
|
trench = libx.mkHost {
|
|
|
|
hostname = "trench";
|
|
|
|
username = "blurryface";
|
|
|
|
};
|
2023-10-12 00:27:24 +05:30
|
|
|
};
|
2023-12-08 10:08:21 +05:30
|
|
|
formatter = libx.forAllSystems (system: nixpkgs.legacyPackages.${system}.alejandra);
|
2023-10-12 00:27:24 +05:30
|
|
|
};
|
|
|
|
|
|
|
|
inputs = {
|
2023-11-26 21:15:09 +05:30
|
|
|
agenix.url = "github:ryantm/agenix";
|
|
|
|
agenix.inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
agenix.inputs.home-manager.follows = "nixpkgs";
|
2023-10-12 00:27:24 +05:30
|
|
|
emacs-overlay.url = "github:nix-community/emacs-overlay";
|
|
|
|
firefox-nightly.url = "github:nix-community/flake-firefox-nightly";
|
|
|
|
home-manager.url = "github:nix-community/home-manager";
|
|
|
|
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
2023-12-01 23:08:24 +05:30
|
|
|
maych-in.url = "https://git.deku.moe/thunderbottom/website/archive/main.tar.gz";
|
|
|
|
maych-in.inputs.nixpkgs.follows = "nixpkgs";
|
2023-10-12 00:27:24 +05:30
|
|
|
nil.url = "github:oxalica/nil";
|
|
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
|
|
|
nixos-hardware.url = "github:nixos/nixos-hardware";
|
|
|
|
nixvim.url = "github:nix-community/nixvim";
|
|
|
|
};
|
|
|
|
|
|
|
|
nixConfig = {
|
|
|
|
max-jobs = "auto";
|
|
|
|
|
|
|
|
# Add extra substituters for caching.
|
|
|
|
# This prevents building from source and instead fetches from
|
|
|
|
# the specified cache.
|
|
|
|
extra-substituters = [
|
|
|
|
"https://nix-community.cachix.org"
|
|
|
|
"https://viperml.cachix.org"
|
|
|
|
];
|
|
|
|
extra-trusted-public-keys = [
|
|
|
|
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
|
|
|
"viperml.cachix.org-1:qZhKBMTfmcLL+OG6fj/hzsMEedgKvZVFRRAhq7j8Vh8="
|
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|