nix-config/containers/rar.nix

56 lines
1.1 KiB
Nix
Raw Normal View History

2023-06-11 15:51:26 +02:00
let VARIABLES = import ../src/variables.nix; in {
containers.rar = {
privateNetwork = true;
bindMounts = {
"/home/user" = {
2023-06-06 16:48:10 +02:00
hostPath = "/home/${VARIABLES.username}/containers/rar";
isReadOnly = false;
};
};
2023-06-11 15:51:26 +02:00
config = { pkgs, lib, ... }: {
programs = {
fish.enable = true;
neovim.enable = true;
starship.enable = true;
};
2023-06-11 15:51:26 +02:00
users = {
defaultUserShell = pkgs.fish;
mutableUsers = false;
allowNoPasswordLogin = true;
2023-06-11 15:51:26 +02:00
users.user = {
isNormalUser = true;
home = "/home/user";
};
2023-06-11 15:51:26 +02:00
};
2023-06-11 15:51:26 +02:00
environment = {
shells = with pkgs; [ fish ];
2023-06-11 15:51:26 +02:00
variables = {
TERM = "xterm-kitty";
};
2023-06-11 15:51:26 +02:00
defaultPackages = [ ];
};
2023-06-11 15:51:26 +02:00
environment.systemPackages = with pkgs; [
kitty
rar
unrar
];
2023-06-11 15:51:26 +02:00
nixpkgs.config.allowUnfreePredicate = pkg:
builtins.elem (lib.getName pkg) [
"rar"
"unrar"
];
system.stateVersion = VARIABLES.stateVersion;
};
};
}