mirror of
https://github.com/srid/nixos-config.git
synced 2026-05-11 17:36:07 +08:00
add lxd
This commit is contained in:
parent
663b40cd89
commit
97bdd0158e
4 changed files with 45 additions and 37 deletions
|
|
@ -2,6 +2,6 @@
|
|||
virtualisation.docker.enable = true;
|
||||
|
||||
users.users.srid = {
|
||||
extraGroups = [ "lxd" "docker" ];
|
||||
extraGroups = [ "docker" ];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
7
features/lxd.nix
Normal file
7
features/lxd.nix
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
{ pkgs, ... }: {
|
||||
virtualisation.lxd.enable = true;
|
||||
|
||||
users.users.srid = {
|
||||
extraGroups = [ "lxd" ];
|
||||
};
|
||||
}
|
||||
8
flake.lock
generated
8
flake.lock
generated
|
|
@ -601,17 +601,17 @@
|
|||
},
|
||||
"nixpkgs_6": {
|
||||
"locked": {
|
||||
"lastModified": 1630761588,
|
||||
"narHash": "sha256-7GXckvZy7DGh2KIyfdArqwnyeSc5Owy1fumEDQyd8eY=",
|
||||
"lastModified": 1631015389,
|
||||
"narHash": "sha256-9SKTwRbp7OQGa4wKTo1wB6ctC2VlaIeKFZ+flqzPuoI=",
|
||||
"owner": "nixos",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "a51aa6523bd8ee985bc70987909eff235900197a",
|
||||
"rev": "bc06c93905f60a82d6ebbb78f78cf289257860cc",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "nixos",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "a51aa6523bd8ee985bc70987909eff235900197a",
|
||||
"rev": "bc06c93905f60a82d6ebbb78f78cf289257860cc",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
|
|
|
|||
65
flake.nix
65
flake.nix
|
|
@ -6,7 +6,7 @@
|
|||
# https://status.nixos.org/
|
||||
#
|
||||
# This ensures that we always use the official nix cache.
|
||||
nixpkgs.url = "github:nixos/nixpkgs/a51aa6523bd8ee985bc70987909eff235900197a";
|
||||
nixpkgs.url = "github:nixos/nixpkgs/bc06c93905f60a82d6ebbb78f78cf289257860cc";
|
||||
|
||||
nixos-hardware.url = github:NixOS/nixos-hardware/master;
|
||||
home-manager.url = "github:nix-community/home-manager";
|
||||
|
|
@ -55,36 +55,37 @@
|
|||
);
|
||||
};
|
||||
in
|
||||
{
|
||||
# The "name" in nixosConfigurations.${name} should match the `hostname`
|
||||
#
|
||||
nixosConfigurations.p71 = mkHomeMachine
|
||||
./hosts/p71.nix
|
||||
[
|
||||
inputs.nixos-hardware.nixosModules.lenovo-thinkpad-p53
|
||||
./features/desktopish
|
||||
#./features/gnome.nix
|
||||
./features/desktopish/guiapps.nix
|
||||
#./features/virtualbox.nix
|
||||
#./features/server-mode.nix
|
||||
# ./features/postgrest.nix
|
||||
./features/server/devserver.nix
|
||||
];
|
||||
nixosConfigurations.x1c7 = mkHomeMachine
|
||||
./hosts/x1c7.nix
|
||||
[
|
||||
inputs.nixos-hardware.nixosModules.lenovo-thinkpad-x1-7th-gen
|
||||
./features/distributed-build.nix
|
||||
./features/gnome.nix
|
||||
./features/desktopish/guiapps.nix
|
||||
];
|
||||
nixosConfigurations.ryzen9 = mkHomeMachine
|
||||
./hosts/ryzen9.nix
|
||||
[
|
||||
./features/server/harden.nix
|
||||
./features/server/devserver.nix
|
||||
./features/ema/emanote.nix
|
||||
];
|
||||
};
|
||||
{
|
||||
# The "name" in nixosConfigurations.${name} should match the `hostname`
|
||||
#
|
||||
nixosConfigurations.p71 = mkHomeMachine
|
||||
./hosts/p71.nix
|
||||
[
|
||||
inputs.nixos-hardware.nixosModules.lenovo-thinkpad-p53
|
||||
./features/desktopish
|
||||
#./features/gnome.nix
|
||||
./features/desktopish/guiapps.nix
|
||||
#./features/virtualbox.nix
|
||||
#./features/server-mode.nix
|
||||
# ./features/postgrest.nix
|
||||
./features/server/devserver.nix
|
||||
];
|
||||
nixosConfigurations.x1c7 = mkHomeMachine
|
||||
./hosts/x1c7.nix
|
||||
[
|
||||
inputs.nixos-hardware.nixosModules.lenovo-thinkpad-x1-7th-gen
|
||||
./features/distributed-build.nix
|
||||
./features/gnome.nix
|
||||
./features/desktopish/guiapps.nix
|
||||
];
|
||||
nixosConfigurations.ryzen9 = mkHomeMachine
|
||||
./hosts/ryzen9.nix
|
||||
[
|
||||
./features/server/harden.nix
|
||||
./features/server/devserver.nix
|
||||
./features/ema/emanote.nix
|
||||
./features/lxd.nix
|
||||
];
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue