2023-05-17 17:10:18 +01:00
|
|
|
{pkgs, ...}: {
|
|
|
|
nix.settings.experimental-features = ["nix-command" "flakes"];
|
2023-03-29 07:37:34 +01:00
|
|
|
# Allow unfree packages
|
|
|
|
nixpkgs.config.allowUnfree = true;
|
|
|
|
|
2023-04-25 14:43:08 +01:00
|
|
|
# Home manager integration with NixOS
|
|
|
|
home-manager.useUserPackages = true;
|
|
|
|
home-manager.useGlobalPkgs = true;
|
|
|
|
|
2023-03-29 07:37:34 +01:00
|
|
|
# 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;
|
2023-03-29 07:37:34 +01:00
|
|
|
|
2023-06-01 13:37:15 +01:00
|
|
|
services.flatpak.enable = true;
|
|
|
|
virtualisation.podman.enable = true;
|
2023-05-12 15:27:21 +01:00
|
|
|
programs.nix-ld = {
|
|
|
|
enable = true;
|
|
|
|
libraries = with pkgs; [
|
|
|
|
stdenv.cc.cc
|
|
|
|
zlib
|
|
|
|
fuse3
|
|
|
|
icu
|
|
|
|
openssl
|
|
|
|
curl
|
|
|
|
expat
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
2023-04-29 12:36:57 +01:00
|
|
|
fonts.fontconfig.enable = true;
|
2023-03-29 08:18:17 +01:00
|
|
|
programs.ssh.startAgent = true;
|
2023-03-29 15:38:01 +01:00
|
|
|
programs.fish.enable = true;
|
|
|
|
programs.zsh = {
|
|
|
|
enable = true;
|
|
|
|
enableCompletion = true;
|
|
|
|
autosuggestions = {
|
|
|
|
enable = true;
|
|
|
|
};
|
|
|
|
syntaxHighlighting = {
|
|
|
|
enable = true;
|
|
|
|
};
|
|
|
|
};
|
2023-03-29 07:37:34 +01:00
|
|
|
|
|
|
|
nix.gc = {
|
|
|
|
automatic = true;
|
2023-05-14 18:10:39 +01:00
|
|
|
dates = "daily";
|
2023-03-29 07:37:34 +01:00
|
|
|
options = "--delete-older-than 7d";
|
|
|
|
};
|
2023-05-31 11:18:45 +01:00
|
|
|
|
|
|
|
nix.extraOptions = ''
|
|
|
|
keep-outputs = true
|
|
|
|
keep-derivations = true
|
|
|
|
'';
|
2023-03-29 07:37:34 +01:00
|
|
|
}
|