mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-11-22 16:23:57 +01:00
55 lines
1.2 KiB
Nix
55 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/neovim
|
|
../modules/fish-starship
|
|
];
|
|
|
|
home-manager.sharedModules = [
|
|
../modules/git
|
|
];
|
|
|
|
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;
|
|
};
|
|
};
|
|
}
|