mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-11-29 11:44:45 +01:00
43a07cc8d9
Neither nixfmt nor alejandra support the "standard" way to syntax highlight multi-line strings in Nix, so nixpkgs-fmt is the only viable solution.
63 lines
1.2 KiB
Nix
63 lines
1.2 KiB
Nix
let
|
|
VARIABLES = import ../src/variables.nix;
|
|
in
|
|
{
|
|
containers.rar = {
|
|
privateNetwork = true;
|
|
|
|
bindMounts = {
|
|
"/home/user" = {
|
|
hostPath = "/home/${VARIABLES.username}/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 = VARIABLES.stateVersion;
|
|
};
|
|
};
|
|
}
|