Files
nix/common/default.nix
Nikolaos Karaolidis df315f97d6 Refactor modules
Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
2024-06-13 12:20:45 +03:00

65 lines
1.2 KiB
Nix

{ lib, pkgs, ... }:
{
imports = [
./configs/zsh.nix
./configs/neovim.nix
./configs/tmux.nix
];
fileSystems."/persist".neededForBoot = true;
boot = {
loader = {
systemd-boot.enable = true;
timeout = 0;
efi.canTouchEfiVariables = true;
};
initrd = {
verbose = false;
postDeviceCommands = lib.mkAfter (builtins.readFile ./scripts/impermanence.sh);
};
kernelParams = [ "loglevel=3" "quiet" ];
consoleLogLevel = 0;
};
environment = {
persistence."/persist" = {
hideMounts = true;
directories = [
"/etc/nixos"
"/etc/NetworkManager/system-connections"
"/var/lib/nixos"
"/var/log"
"/var/lib/systemd/coredump"
];
files = [
"/etc/machine-id"
"/root/.zsh_history"
];
};
systemPackages = with pkgs; [
nano
tree
git
ranger
btop
fastfetch
];
};
networking.networkmanager.enable = true;
i18n.defaultLocale = "en_US.UTF-8";
users.defaultUserShell = pkgs.zsh;
security.sudo.extraConfig = ''
Defaults lecture = never
'';
nix.settings.experimental-features = [ "nix-command" "flakes" ];
system.stateVersion = "24.05";
}