mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-06-12 20:56:40 +02:00
meta: Remove declarative containers
Because of how easy it is to create and run virtual machines in NixOS, the use of containers is not necessary. Virtual machines additionally outperform containers when it comes to graphical tasks, and allow for the usage of a variety of GUI applications separate from the host.
This commit is contained in:
parent
b21a7742fe
commit
1777b976e9
@ -399,53 +399,5 @@
|
||||
HOLD: KEY_RIGHTMETA
|
||||
'';
|
||||
|
||||
containers.test = let hostCfg = config;
|
||||
in {
|
||||
autoStart = false;
|
||||
privateNetwork = true;
|
||||
hostAddress = "192.168.100.10";
|
||||
localAddress = "192.168.100.11";
|
||||
|
||||
config = { config, pkgs, ... }: {
|
||||
programs.fish.enable = true;
|
||||
users.defaultUserShell = pkgs.fish;
|
||||
environment.shells = with pkgs; [ fish ];
|
||||
|
||||
programs.npm.enable = true;
|
||||
|
||||
nix.package = pkgs.nixFlakes;
|
||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||
programs.neovim.enable = true;
|
||||
environment.systemPackages = with pkgs; [
|
||||
p7zip
|
||||
kitty
|
||||
git
|
||||
unzip
|
||||
ripgrep
|
||||
gcc
|
||||
trashy
|
||||
wget
|
||||
exa
|
||||
fd
|
||||
fzf
|
||||
gdu
|
||||
ranger
|
||||
];
|
||||
|
||||
environment.variables = { TERM = "xterm-kitty"; };
|
||||
|
||||
users.mutableUsers = false;
|
||||
users.allowNoPasswordLogin = true;
|
||||
|
||||
users.users.user = {
|
||||
isNormalUser = true;
|
||||
home = "/home/user";
|
||||
};
|
||||
|
||||
environment.defaultPackages = [ ];
|
||||
system.stateVersion = "22.11";
|
||||
};
|
||||
};
|
||||
|
||||
system.stateVersion = "22.11";
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user