1
0
forked from extern/nix-config
donovanglover-nix-config/containers/dev.nix
Donovan Glover 0aaba9a591
meta: Remove variables from containers
Modules solve the variable problem in a nicer way.
2023-06-22 11:44:35 -04:00

54 lines
1.1 KiB
Nix

{ 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;
};
};
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 = "22.11";
};
environment = {
variables = { TERM = "xterm-kitty"; };
defaultPackages = [ ];
};
environment.systemPackages = with pkgs; [ kitty ];
system.stateVersion = "22.11";
};
};
}