48 lines
1.3 KiB
Nix
48 lines
1.3 KiB
Nix
{
|
|
description = "My Nix Configuration";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
|
|
home-manager.url = "github:nix-community/home-manager/master";
|
|
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
nixos-generators.url = "github:nix-community/nixos-generators";
|
|
nixos-generators.inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
snowfall-lib.url = "github:snowfallorg/lib";
|
|
snowfall-lib.inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
deploy-rs.url = "github:serokell/deploy-rs";
|
|
deploy-rs.inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
outputs = inputs: let
|
|
lib = inputs.snowfall-lib.mkLib {
|
|
inherit inputs;
|
|
src = ./.;
|
|
};
|
|
in
|
|
lib.mkFlake {
|
|
overlay-package-namespace = "aa";
|
|
|
|
channels-config.allowUnfree = true;
|
|
|
|
systems.modules = with inputs; [
|
|
home-manager.nixosModules.home-manager
|
|
];
|
|
|
|
deploy.nodes.node = {
|
|
hostname = "node";
|
|
profiles.system = {
|
|
user = "root";
|
|
sshUser = "alejandro";
|
|
path = inputs.deploy-rs.lib.x86_64-linux.activate.nixos inputs.self.nixosConfigurations.node;
|
|
sshOpts = [ "-A" ];
|
|
};
|
|
};
|
|
|
|
checks = builtins.mapAttrs (system: deployLib: deployLib.deployChecks inputs.self.deploy) inputs.deploy-rs.lib;
|
|
};
|
|
}
|