49 lines
912 B
Nix
49 lines
912 B
Nix
{ ... }:
|
|
|
|
let
|
|
home-manager = builtins.fetchTarball "https://github.com/nix-community/home-manager/archive/master.tar.gz";
|
|
in
|
|
|
|
{
|
|
imports = [
|
|
(import "${home-manager}/nixos")
|
|
./cachix.nix
|
|
];
|
|
|
|
# Allow unfree packages
|
|
nixpkgs.config.allowUnfree = true;
|
|
|
|
home-manager.useUserPackages = false;
|
|
home-manager.useGlobalPkgs = false;
|
|
|
|
# Enable networking
|
|
networking.networkmanager.enable = true;
|
|
|
|
# Enable power-profiles
|
|
services.power-profiles-daemon.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 = "weekly";
|
|
options = "--delete-older-than 7d";
|
|
};
|
|
|
|
system.autoUpgrade = {
|
|
enable = true;
|
|
allowReboot = false;
|
|
};
|
|
}
|