summaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix16
1 files changed, 15 insertions, 1 deletions
diff --git a/flake.nix b/flake.nix
index b6b4579..fe08e09 100644
--- a/flake.nix
+++ b/flake.nix
@@ -23,13 +23,17 @@
playground.url = "git+https://stuebinm.eu/git/playground";
playground.flake = false;
naersk.url = "github:nix-community/naersk";
+ naersk.inputs.nixpkgs.follows = "nixpkgs";
sfz.url = "github:weihanglo/sfz";
sfz.flake = false;
feeds.url = "path:/home/stuebinm/newsboat-feeds-private.nix";
feeds.flake = false;
+
+ deploy-rs.url = "github:serokell/deploy-rs";
+ deploy-rs.inputs.nixpkgs.follows = "nixpkgs";
};
- outputs = { self, nixpkgs, ... }@inputs:
+ outputs = { self, nixpkgs, deploy-rs, ... }@inputs:
let
mkConfig = imports: config:
nixpkgs.lib.nixosSystem {
@@ -49,6 +53,16 @@
cyberbox = mkDesktop ./cyberbox/configuration.nix;
};
+
+ deploy.nodes.chaski.profiles.system = {
+ user = "root";
+ sshUser = "root";
+ path = deploy-rs.lib.x86_64-linux.activate.nixos self.nixosConfigurations.chaski;
+ };
+ deploy.nodes.chaski.hostname = "chaski";
+
+ checks = builtins.mapAttrs (system: deployLib: deployLib.deployChecks self.deploy) deploy-rs.lib;
+
homeConfigurations.stuebinm =
inputs.home-manager.lib.homeManagerConfiguration rec {
system = "x86_64-linux";