56 lines
1.1 KiB
Nix
56 lines
1.1 KiB
Nix
{pkgs, ...}: {
|
|
nix.settings.experimental-features = ["nix-command" "flakes"];
|
|
# Allow unfree packages
|
|
nixpkgs.config.allowUnfree = true;
|
|
|
|
# Home manager integration with NixOS
|
|
home-manager.useUserPackages = false;
|
|
home-manager.useGlobalPkgs = true;
|
|
|
|
# Enable networking
|
|
networking.networkmanager.enable = true;
|
|
|
|
# Enable power-profiles
|
|
services.power-profiles-daemon.enable = true;
|
|
|
|
services.flatpak.enable = true;
|
|
virtualisation.podman.enable = true;
|
|
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";
|
|
};
|
|
|
|
nix.extraOptions = ''
|
|
keep-outputs = true
|
|
keep-derivations = true
|
|
'';
|
|
}
|