Add initial config
Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
64
configuration.nix
Normal file
64
configuration.nix
Normal file
@@ -0,0 +1,64 @@
|
||||
{ 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";
|
||||
}
|
Reference in New Issue
Block a user