Started work on modularized machine config, does not quite work yet. Changed Ophanim's kernel to hardened.
This commit is contained in:
parent
2efae4f888
commit
a0f361425a
10 changed files with 162 additions and 63 deletions
|
@ -1,7 +1,7 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
let
|
||||
cfg = import ("/etc/nixos/machines/" + (builtins.replaceStrings ["\n"] [""] (builtins.readFile /etc/hostname)) + "/configuration.nix");
|
||||
in {
|
||||
imports = cfg.services;
|
||||
with lib;
|
||||
|
||||
{
|
||||
imports = config.machine.services;
|
||||
}
|
||||
|
|
8
services/docker.nix
Normal file
8
services/docker.nix
Normal file
|
@ -0,0 +1,8 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
# Note: add privileged users to docker group for access
|
||||
{
|
||||
virtualisation.docker.enable = true;
|
||||
environment.systemPackages = with pkgs; [ docker-compose docker-machine ];
|
||||
### Docker Image stuff will probably follow here
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue