Files
nix_config/flake.nix
T

37 lines
1.0 KiB
Nix

{
description = "System config";
inputs = {
nixpkgs.url = "nixpkgs/nixos-unstable";
nixpkgs_stable.url = "nixpkgs/nixos-22.11";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
tachikoma = {
url = "git+https://forge.room409.xyz/miloignis/tachikoma.git";
#inputs.nixpkgs.follows = "nixpkgs";
#don't follow because it can change the cargo hash?
};
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, nixpkgs_stable, home-manager, tachikoma, flake-utils }@attrs:
let
system = "x86_64-linux";
in {
nixosConfigurations.panam = nixpkgs.lib.nixosSystem {
inherit system;
specialArgs = attrs;
modules = [
home-manager.nixosModules.home-manager
tachikoma.nixosModules.default
./home_manager.nix
./panam.nix
];
};
};
}