1
0
forked from extern/nix-config
donovanglover-nix-config/containers/dev.nix
Donovan Glover 7760a7028b
containers(dev): Add htop
Might make htop available to all containers in the future.
2023-06-20 18:52:13 -04:00

56 lines
1.2 KiB
Nix

{ home-manager, ... }:
let
VARIABLES = import ../src/variables.nix;
in
{
containers.dev = {
privateNetwork = true;
ephemeral = true;
hostAddress = "192.168.100.30";
localAddress = "192.168.100.31";
bindMounts = {
"/mnt" = {
hostPath = "/home/${VARIABLES.username}/containers/dev";
isReadOnly = false;
};
};
config = { pkgs, ... }: {
imports = [
home-manager.nixosModules.home-manager
../modules/nix.nix
../modules/fish.nix
];
home-manager.sharedModules = [
../home/git.nix
../home/neovim.nix
../home/htop.nix
];
users = {
mutableUsers = false;
allowNoPasswordLogin = true;
users.user = {
isNormalUser = true;
home = "/home/user";
};
};
home-manager.users.user = { pkgs, ... }: {
home.stateVersion = VARIABLES.stateVersion;
};
environment = {
variables = { TERM = "xterm-kitty"; };
defaultPackages = [ ];
};
environment.systemPackages = with pkgs; [ kitty ];
system.stateVersion = VARIABLES.stateVersion;
};
};
}