nix-config/containers/dev.nix

54 lines
1.1 KiB
Nix
Raw Normal View History

{ home-manager, ... }:
{
containers.dev = {
privateNetwork = true;
ephemeral = true;
hostAddress = "192.168.100.30";
localAddress = "192.168.100.31";
bindMounts = {
"/mnt" = {
hostPath = "/home/user/containers/dev";
isReadOnly = false;
};
};
2023-06-13 15:06:39 +02:00
config = { pkgs, ... }: {
imports = [
home-manager.nixosModules.home-manager
../modules/nix.nix
2023-06-16 20:05:23 +02:00
../modules/fish.nix
];
home-manager.sharedModules = [
2023-06-16 19:15:44 +02:00
../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 = "22.11";
};
environment = {
variables = { TERM = "xterm-kitty"; };
defaultPackages = [ ];
};
environment.systemPackages = with pkgs; [ kitty ];
system.stateVersion = "22.11";
};
};
}