nix/misc/nix.nix
2024-07-14 01:17:46 +02:00

24 lines
639 B
Nix

args @ { pkgs, ... }:
{
nix.settings.experimental-features = [ "nix-command" "flakes" ];
nixpkgs.config.permittedInsecurePackages = [
"freeimage-unstable-2021-11-01"
"openssl-1.1.1w"
];
home-manager.users.krizej.programs.home-manager.enable = true;
home-manager.users.krizej.home.packages = [
(pkgs.writeShellScriptBin "rebuild" ''
set -e
# 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;
}