forked from extern/nix-config
3119b789f8
Alejandra is written in Rust, has more tests than nixfmt, and handles non-trivial code examples in Nix better.
60 lines
1.0 KiB
Nix
60 lines
1.0 KiB
Nix
{
|
|
containers.rar = {
|
|
privateNetwork = true;
|
|
|
|
bindMounts = {
|
|
"/home/user" = {
|
|
hostPath = "/home/user/containers/rar";
|
|
isReadOnly = false;
|
|
};
|
|
};
|
|
|
|
config = {
|
|
pkgs,
|
|
lib,
|
|
...
|
|
}: {
|
|
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 = {
|
|
shells = with pkgs; [fish];
|
|
|
|
variables = {
|
|
TERM = "xterm-kitty";
|
|
};
|
|
|
|
defaultPackages = [];
|
|
};
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
kitty
|
|
rar
|
|
unrar
|
|
];
|
|
|
|
nixpkgs.config.allowUnfreePredicate = pkg:
|
|
builtins.elem (lib.getName pkg) [
|
|
"rar"
|
|
"unrar"
|
|
];
|
|
|
|
system.stateVersion = "22.11";
|
|
};
|
|
};
|
|
}
|