Files
nix/hosts/common/default.nix
Nikolaos Karaolidis eaa63dd272 Add plymouth
Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
2024-06-25 20:16:25 +03:00

80 lines
1.4 KiB
Nix

{ inputs, pkgs, ... }:
{
imports = [
./configs/persist
./configs/sops
./configs/getty
./configs/plymouth
./configs/brightnessctl
./configs/pipewire
./configs/zsh
./configs/neovim
./configs/tmux
./configs/ssh
./configs/nix-ld
./configs/git
./configs/gpg-agent
./configs/tree
./configs/ranger
./configs/btop
./configs/fastfetch
./scripts/cleanup
];
boot = {
loader = {
systemd-boot = {
enable = true;
editor = false;
};
timeout = 1;
efi.canTouchEfiVariables = true;
};
initrd.systemd.enable = true;
kernelPackages = pkgs.linuxPackages_latest;
supportedFilesystems = [ "btrfs" "ntfs" ];
};
networking.networkmanager.enable = true;
i18n.defaultLocale = "en_US.UTF-8";
users = {
mutableUsers = false;
defaultUserShell = pkgs.zsh;
};
security.sudo.extraConfig = ''
Defaults lecture = never
'';
system = {
autoUpgrade = {
enable = true;
flake = inputs.self.outPath;
flags = [
"--update-input"
"nixpkgs"
"-L"
];
dates = "02:00";
};
stateVersion = "24.05";
};
nix = {
settings = {
use-xdg-base-directories = true;
experimental-features = [ "nix-command" "flakes" ];
};
gc.automatic = true;
optimise.automatic = true;
};
nixpkgs.config.allowUnfree = true;
}