This commit is contained in:
Sridhar Ratnakumar 2021-09-09 11:15:54 -04:00
parent 663b40cd89
commit 97bdd0158e
4 changed files with 45 additions and 37 deletions

View file

@ -2,6 +2,6 @@
virtualisation.docker.enable = true;
users.users.srid = {
extraGroups = [ "lxd" "docker" ];
extraGroups = [ "docker" ];
};
}

7
features/lxd.nix Normal file
View file

@ -0,0 +1,7 @@
{ pkgs, ... }: {
virtualisation.lxd.enable = true;
users.users.srid = {
extraGroups = [ "lxd" ];
};
}

8
flake.lock generated
View file

@ -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"
}
},

View file

@ -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
];
};
}