started shanghai

This commit is contained in:
William 2024-08-27 08:51:27 -03:00
parent 52722bb66e
commit 39b22bfd0b
6 changed files with 176 additions and 30 deletions

View file

@ -95,22 +95,41 @@
})
];
};
};
homeConfigurations = {
desktop = home-manager.lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages.x86_64-linux;
extraSpecialArgs = { inherit inputs; };
modules = [ ./users/desktops/user.nix ];
};
server = home-manager.lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages.x86_64-linux;
extraSpecialArgs = { inherit inputs; };
modules = [ ./users/servers/user.nix ];
shanghai = nixpkgs-stable.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = { inherit inputs; };
modules = [
./hosts/servers/shanghai.nix
agenix.nixosModules.default
self.nixosModules.qbittorrent
({ config, pkgs, ... }:
let
unstable-overlay = final: prev: {
unstable = nixpkgs.legacyPackages.x86_64-linux;
};
in {
nixpkgs.overlays = [ unstable-overlay agenix.overlays.default ];
imports = [ ];
})
];
};
};
# homeConfigurations = {
# desktop = home-manager.lib.homeManagerConfiguration {
# pkgs = nixpkgs.legacyPackages.x86_64-linux;
# extraSpecialArgs = { inherit inputs; };
# modules = [ ./users/desktops/user.nix ];
# };
# server = home-manager.lib.homeManagerConfiguration {
# pkgs = nixpkgs.legacyPackages.x86_64-linux;
# extraSpecialArgs = { inherit inputs; };
# modules = [ ./users/servers/user.nix ];
# };
# };
deploy = {
autoRollback = true;
magicRollback = false;
@ -128,6 +147,19 @@
};
};
shanghai = {
hostname = "shanghai";
profiles = {
system = {
user = "root";
sshUser = "root";
remoteBuild = true;
plath = deploy-rs.lib.x86_64-linux.activate.nixos
self.nixosConfigurations.shanghai;
};
};
};
io = {
hostname = "io";
profiles = {