deploy-rs: More configuration
Right now this fails, because what I assume is a failure with emulation in WSL, but otherwise I'm linking the overall approach of reusing the preconfigured nixOSConfigurations in the same flake, as well as lightweight burden of configuration. Doesn't hurt that it is written in Rust rather than Python.
This commit is contained in:
parent
efdf3bc236
commit
bc8062f330
4 changed files with 29 additions and 11 deletions
14
flake.nix
14
flake.nix
|
@ -109,5 +109,19 @@
|
|||
};
|
||||
};
|
||||
|
||||
deploy.nodes = {
|
||||
bebop = {
|
||||
hostname = "bebop";
|
||||
fastConnection = true;
|
||||
remoteBuild = true;
|
||||
profiles.system = {
|
||||
user = "payas";
|
||||
path = deploy-rs.lib.x86_64-linux.activate.nixos self.nixosConfigurations.bebop;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
# This is highly advised, and will prevent many possible mistakes
|
||||
checks = builtins.mapAttrs (system: deployLib: deployLib.deployChecks self.deploy) deploy-rs.lib;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -20,11 +20,13 @@ in
|
|||
time.timeZone = "Asia/Kolkata";
|
||||
|
||||
nix = {
|
||||
settings.trusted-public-keys = [
|
||||
"enterprise-nix-cache:z8I4D9VcVa4rbc13EWtv3WTuOCcqmywKwguViFwQw+A="
|
||||
];
|
||||
settings = {
|
||||
trusted-public-keys = [
|
||||
"enterprise-nix-cache:z8I4D9VcVa4rbc13EWtv3WTuOCcqmywKwguViFwQw+A="
|
||||
];
|
||||
|
||||
trustedUsers = [ user ];
|
||||
trusted-users = [ user ];
|
||||
};
|
||||
};
|
||||
|
||||
fileSystems = {
|
||||
|
@ -80,6 +82,11 @@ in
|
|||
};
|
||||
};
|
||||
|
||||
documentation = {
|
||||
enable = false;
|
||||
man.enable = false;
|
||||
};
|
||||
|
||||
# Enable auto-update
|
||||
# This will only update as long as I push and update the original flake remotely
|
||||
system.autoUpgrade = {
|
||||
|
|
|
@ -1,8 +1,5 @@
|
|||
{ config, pkgs, options, ... }:
|
||||
{ pkgs, ... }:
|
||||
|
||||
let
|
||||
user = "payas";
|
||||
in
|
||||
{
|
||||
environment.systemPackages = with pkgs; [
|
||||
neovim # basic editing. No, nano is not it
|
||||
|
@ -14,6 +11,6 @@ in
|
|||
wget # curl, but kinda better
|
||||
fzf # fuzzy search in command line
|
||||
nix-output-monitor
|
||||
deploy-rs
|
||||
];
|
||||
|
||||
}
|
||||
|
|
|
@ -69,8 +69,8 @@
|
|||
"dup" = "doom upgrade";
|
||||
"dsy" = "doom sync";
|
||||
"bebop" = "ssh payas@bebop";
|
||||
"bbrb" = "nixos-rebuild boot --flake .#bebop -v --target-host root@bebop --build-host localhost";
|
||||
"bbrs" = "nixos-rebuild switch --flake .#bebop -v --target-host root@bebop --build-host localhost";
|
||||
"bbrb" = "sudo nixos-rebuild boot --flake .#bebop -v --target-host root@bebop";
|
||||
"bbrs" = "sudo nixos-rebuild switch --flake .#bebop -v --target-host root@bebop";
|
||||
"bkp" = "emacs --script ~/org/elisp-fu/bkp.el";
|
||||
"mid" = "mu index";
|
||||
};
|
||||
|
|
Reference in a new issue