2023-06-12 20:51:30 +02:00
|
|
|
{ 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;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2023-06-13 15:06:39 +02:00
|
|
|
config = { pkgs, ... }: {
|
2023-06-12 20:51:30 +02:00
|
|
|
imports = [
|
|
|
|
home-manager.nixosModules.home-manager
|
|
|
|
../modules/git
|
|
|
|
../modules/neovim
|
2023-06-12 21:10:13 +02:00
|
|
|
../modules/fish-starship
|
2023-06-12 20:51:30 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
users = {
|
|
|
|
mutableUsers = false;
|
|
|
|
allowNoPasswordLogin = true;
|
|
|
|
|
|
|
|
users.user = {
|
|
|
|
isNormalUser = true;
|
|
|
|
home = "/home/user";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
home-manager.users.user = { pkgs, ... }: {
|
|
|
|
home.packages = [ pkgs.atool pkgs.httpie ];
|
|
|
|
home.stateVersion = VARIABLES.stateVersion;
|
|
|
|
};
|
|
|
|
|
|
|
|
environment = {
|
|
|
|
variables = { TERM = "xterm-kitty"; };
|
|
|
|
defaultPackages = [ ];
|
|
|
|
};
|
|
|
|
|
|
|
|
environment.systemPackages = with pkgs; [ kitty ];
|
|
|
|
system.stateVersion = VARIABLES.stateVersion;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|