nixos/common.nix

72 lines
1.5 KiB
Nix
Raw Normal View History

{ pkgs, ... }:
{
2023-05-05 08:39:02 +01:00
nix.settings.experimental-features = [ "nix-command" "flakes" ];
# Allow unfree packages
nixpkgs.config.allowUnfree = true;
# Home manager integration with NixOS
home-manager.useUserPackages = true;
home-manager.useGlobalPkgs = true;
home-manager.users.root = { ... }: {
imports = [
./home/env/bash.nix
./home/env/fish.nix
./home/env/bat.nix
./home/env/starship.nix
2023-05-09 17:47:54 +01:00
./home/tui/neovim.nix
2023-05-09 17:57:57 +01:00
./home/tui/lazygit.nix
./home/git/personal.nix
];
# Home Manager needs a bit of information about you and the
# paths it should manage.
home.username = "root";
home.homeDirectory = "/root";
home.stateVersion = "22.11";
};
# Enable networking
2023-05-09 18:31:55 +01:00
networking.networkmanager.enable = true;
2023-04-05 11:17:19 +01:00
# Enable power-profiles
services.power-profiles-daemon.enable = true;
environment.systemPackages = with pkgs; [
2023-05-09 18:31:55 +01:00
dig
2023-04-19 09:28:13 +01:00
gnumake
home-manager
];
programs.nix-ld = {
enable = true;
libraries = with pkgs; [
stdenv.cc.cc
zlib
fuse3
icu
openssl
curl
expat
];
};
fonts.fontconfig.enable = true;
programs.ssh.startAgent = true;
programs.fish.enable = true;
programs.zsh = {
enable = true;
enableCompletion = true;
autosuggestions = {
enable = true;
};
syntaxHighlighting = {
enable = true;
};
};
nix.gc = {
automatic = true;
dates = "daily";
options = "--delete-older-than 7d";
};
}