diff options
author | stuebinm | 2022-01-20 20:03:42 +0100 |
---|---|---|
committer | stuebinm | 2022-01-20 20:03:42 +0100 |
commit | d74de5d10e103186cf58553570ee1bcbc78a383b (patch) | |
tree | 1c81b361295bf354ff54d8efe1ecbe6985458d50 /flake.nix | |
parent | 0bcabe1c4b1dd74af233674dfa6c6ec3011ce2c0 (diff) |
home: add leylines, viu
Diffstat (limited to 'flake.nix')
-rw-r--r-- | flake.nix | 16 |
1 files changed, 15 insertions, 1 deletions
@@ -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"; |