nix/misc/nix.nix
2024-07-10 22:10:55 +02:00

20 lines
534 B
Nix

args @ { pkgs, ... }:
{
nix.settings.experimental-features = [ "nix-command" "flakes" ];
nixpkgs.config.permittedInsecurePackages = [
"freeimage-unstable-2021-11-01"
];
home-manager.users.krizej.home.packages = [
(pkgs.writeShellScriptBin "rebuild" ''
# hack: update autorandr stuffs
autorandr --match-edid --dry-run &> ~/nix/files/autorandr.txt
sudo nixos-rebuild switch --flake ~/nix --show-trace -v
'')
];
nixpkgs.overlays = import ../pkgs args;
nixpkgs.config.allowUnfree = true;
}