nix/misc/nix.nix

21 lines
534 B
Nix
Raw Normal View History

2024-07-10 15:01:17 +02:00
args @ { pkgs, ... }:
2024-07-04 01:13:59 +02:00
{
nix.settings.experimental-features = [ "nix-command" "flakes" ];
nixpkgs.config.permittedInsecurePackages = [
"freeimage-unstable-2021-11-01"
];
2024-07-10 22:10:55 +02:00
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
'')
];
2024-07-10 15:01:17 +02:00
nixpkgs.overlays = import ../pkgs args;
2024-07-04 01:13:59 +02:00
nixpkgs.config.allowUnfree = true;
}