Add deployable profiles

This commit is contained in:
Alexander Bantyev 2021-06-14 23:00:45 +03:00
parent 8b6e9d994b
commit aa75df67e2
Signed by: balsoft
GPG Key ID: E081FF12ADCB4AD5
2 changed files with 26 additions and 17 deletions

View File

@ -90,11 +90,11 @@
"utils": "utils" "utils": "utils"
}, },
"locked": { "locked": {
"lastModified": 1614654775, "lastModified": 1623011836,
"narHash": "sha256-3mLxoxIXSWUuKE8YgIuqM5AZzXFd1aWxkTlplEDeXIA=", "narHash": "sha256-02M4P3eqUdV+ouZb8n1KDR1CXeZQm17cKpjKZKi0c10=",
"owner": "serokell", "owner": "serokell",
"repo": "deploy-rs", "repo": "deploy-rs",
"rev": "6278b9bef5ad624676a565980417cbbef42d5227", "rev": "70d71b3027b1793b780f1e2435bdbbe1b0cb9ac6",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -310,11 +310,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1610392286, "lastModified": 1622810282,
"narHash": "sha256-3wFl5y+4YZO4SgRYK8WE7JIS3p0sxbgrGaQ6RMw+d98=", "narHash": "sha256-4wmvM3/xfD0hCdNDIXVzRMfL4yB1J+DjH6Zte2xbAxk=",
"owner": "nmattia", "owner": "nmattia",
"repo": "naersk", "repo": "naersk",
"rev": "d7bfbad3304fd768c0f93a4c3b50976275e6d4be", "rev": "e8061169e1495871b56be97c5c51d310fae01374",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -359,11 +359,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1610942247, "lastModified": 1622972307,
"narHash": "sha256-PKo1ATAlC6BmfYSRmX0TVmNoFbrec+A5OKcabGEu2yU=", "narHash": "sha256-ENOu0FPCf95iLLoq2txhJtnA2ZpOFhIVBqQVbKM8ra0=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "7d71001b796340b219d1bfa8552c81995017544a", "rev": "d8eb97e3801bde96491535f40483d550b57605b9",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -641,11 +641,11 @@
}, },
"utils": { "utils": {
"locked": { "locked": {
"lastModified": 1610051610, "lastModified": 1622445595,
"narHash": "sha256-U9rPz/usA1/Aohhk7Cmc2gBrEEKRzcW4nwPWMPwja4Y=", "narHash": "sha256-m+JRe6Wc5OZ/mKw2bB3+Tl0ZbtyxxxfnAWln8Q5qs+Y=",
"owner": "numtide", "owner": "numtide",
"repo": "flake-utils", "repo": "flake-utils",
"rev": "3982c9903e93927c2164caa727cd3f6a0e6d14cc", "rev": "7d706970d94bc5559077eb1a6600afddcd25a7c8",
"type": "github" "type": "github"
}, },
"original": { "original": {

View File

@ -92,11 +92,20 @@
deploy = { deploy = {
user = "root"; user = "root";
nodes.T420-Laptop = { nodes = (builtins.mapAttrs (_: machine: {
hostname = hostname = machine.config.networking.hostName;
self.nixosConfigurations.T420-Laptop.config.networking.hostName; profiles.system = {
profiles.system.path = deploy-rs.lib.x86_64-linux.activate.nixos user = "balsoft";
self.nixosConfigurations.T420-Laptop; path = deploy-rs.lib.x86_64-linux.activate.noop
machine.config.system.build.toplevel;
};
}) self.nixosConfigurations) // {
T420-Laptop = {
hostname =
self.nixosConfigurations.T420-Laptop.config.networking.hostName;
profiles.system.path = deploy-rs.lib.x86_64-linux.activate.nixos
self.nixosConfigurations.T420-Laptop;
};
}; };
}; };
}; };