2023-05-31 19:50:11 +02:00
|
|
|
{
|
|
|
|
containers.rar = {
|
|
|
|
privateNetwork = true;
|
|
|
|
|
|
|
|
bindMounts = {
|
|
|
|
"/home/user" = {
|
|
|
|
hostPath = "/home/user/containers/rar";
|
|
|
|
isReadOnly = false;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2023-06-06 02:37:52 +02:00
|
|
|
config = {
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}: {
|
2023-05-31 19:50:11 +02:00
|
|
|
programs = {
|
|
|
|
fish.enable = true;
|
|
|
|
neovim.enable = true;
|
|
|
|
starship.enable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
users = {
|
|
|
|
defaultUserShell = pkgs.fish;
|
|
|
|
mutableUsers = false;
|
|
|
|
allowNoPasswordLogin = true;
|
|
|
|
|
|
|
|
users.user = {
|
|
|
|
isNormalUser = true;
|
|
|
|
home = "/home/user";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
environment = {
|
2023-06-06 02:37:52 +02:00
|
|
|
shells = with pkgs; [fish];
|
2023-05-31 19:50:11 +02:00
|
|
|
|
|
|
|
variables = {
|
|
|
|
TERM = "xterm-kitty";
|
|
|
|
};
|
|
|
|
|
2023-06-06 02:37:52 +02:00
|
|
|
defaultPackages = [];
|
2023-05-31 19:50:11 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
kitty
|
|
|
|
rar
|
|
|
|
unrar
|
|
|
|
];
|
|
|
|
|
2023-06-06 02:37:52 +02:00
|
|
|
nixpkgs.config.allowUnfreePredicate = pkg:
|
|
|
|
builtins.elem (lib.getName pkg) [
|
|
|
|
"rar"
|
|
|
|
"unrar"
|
|
|
|
];
|
2023-05-31 19:50:11 +02:00
|
|
|
|
|
|
|
system.stateVersion = "22.11";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|