2023-06-22 17:43:19 +02:00
|
|
|
{
|
2023-05-31 19:50:11 +02:00
|
|
|
containers.rar = {
|
|
|
|
privateNetwork = true;
|
|
|
|
|
|
|
|
bindMounts = {
|
|
|
|
"/home/user" = {
|
2023-06-22 17:43:19 +02:00
|
|
|
hostPath = "/home/user/containers/rar";
|
2023-05-31 19:50:11 +02:00
|
|
|
isReadOnly = false;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2023-06-11 15:51:26 +02:00
|
|
|
config = { pkgs, lib, ... }: {
|
|
|
|
programs = {
|
|
|
|
fish.enable = true;
|
|
|
|
neovim.enable = true;
|
|
|
|
starship.enable = true;
|
|
|
|
};
|
2023-05-31 19:50:11 +02:00
|
|
|
|
2023-06-11 15:51:26 +02:00
|
|
|
users = {
|
|
|
|
defaultUserShell = pkgs.fish;
|
|
|
|
mutableUsers = false;
|
|
|
|
allowNoPasswordLogin = true;
|
2023-05-31 19:50:11 +02:00
|
|
|
|
2023-06-11 15:51:26 +02:00
|
|
|
users.user = {
|
|
|
|
isNormalUser = true;
|
|
|
|
home = "/home/user";
|
2023-05-31 19:50:11 +02:00
|
|
|
};
|
2023-06-11 15:51:26 +02:00
|
|
|
};
|
2023-05-31 19:50:11 +02:00
|
|
|
|
2023-06-11 15:51:26 +02:00
|
|
|
environment = {
|
|
|
|
shells = with pkgs; [ fish ];
|
2023-05-31 19:50:11 +02:00
|
|
|
|
2023-06-11 15:51:26 +02:00
|
|
|
variables = {
|
|
|
|
TERM = "xterm-kitty";
|
2023-06-11 15:33:54 +02:00
|
|
|
};
|
|
|
|
|
2023-06-11 15:51:26 +02:00
|
|
|
defaultPackages = [ ];
|
|
|
|
};
|
2023-05-31 19:50:11 +02:00
|
|
|
|
2023-06-11 15:51:26 +02:00
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
kitty
|
|
|
|
rar
|
2023-07-01 20:03:40 +02:00
|
|
|
unrar
|
2023-06-11 15:51:26 +02:00
|
|
|
];
|
2023-06-11 15:33:54 +02:00
|
|
|
|
2023-06-24 18:12:57 +02:00
|
|
|
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
|
|
|
|
"rar"
|
2023-07-01 20:03:40 +02:00
|
|
|
"unrar"
|
2023-06-24 18:12:57 +02:00
|
|
|
];
|
2023-06-11 15:51:26 +02:00
|
|
|
|
2023-06-22 17:43:19 +02:00
|
|
|
system.stateVersion = "22.11";
|
2023-06-11 15:51:26 +02:00
|
|
|
};
|
2023-05-31 19:50:11 +02:00
|
|
|
};
|
|
|
|
}
|