lxc patch 12
This commit is contained in:
+5
-3
@@ -1,4 +1,3 @@
|
||||
# system/lxc.nix
|
||||
{ config, pkgs, ... }: {
|
||||
virtualisation.lxc = {
|
||||
enable = true;
|
||||
@@ -10,6 +9,7 @@
|
||||
commands = [
|
||||
{ command = "/run/current-system/sw/bin/lxc-attach"; options = [ "NOPASSWD" ]; }
|
||||
{ command = "/run/current-system/sw/bin/lxc-start"; options = [ "NOPASSWD" ]; }
|
||||
{ command = "/run/current-system/sw/bin/lxc-info"; options = [ "NOPASSWD" ]; }
|
||||
];
|
||||
}];
|
||||
|
||||
@@ -84,12 +84,13 @@
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
lxc
|
||||
# lxc-templates
|
||||
wget
|
||||
gnupg
|
||||
debootstrap
|
||||
bridge-utils
|
||||
(writeShellScriptBin "lxc-login" (builtins.readFile ../home/scripts/lxc/lxc-login.sh))
|
||||
(writeShellScriptBin "lxc-login" (builtins.readFile ../home/scripts/lxc/lxc-login.sh))
|
||||
(writeShellScriptBin "lab-mount" (builtins.readFile ../home/scripts/lxc/lab-mount.sh))
|
||||
(writeShellScriptBin "lab-addkey" (builtins.readFile ../home/scripts/lxc/lab-addkey.sh))
|
||||
];
|
||||
|
||||
environment.etc."lxc/default.conf".text = ''
|
||||
@@ -103,3 +104,4 @@
|
||||
environment.etc."local/bin/lxc-login".source = ../home/scripts/lxc/lxc-login.sh;
|
||||
environment.etc."local/bin/lxc-login".mode = "0755";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user