Add initial config

Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
2024-06-13 01:31:33 +03:00
parent 45e6e7fc21
commit 1b34ac63ff
25 changed files with 804 additions and 91 deletions

64
configuration.nix Normal file
View 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";
}