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-14 01:17:46 +02:00
|
|
|
"openssl-1.1.1w"
|
2024-07-04 01:13:59 +02:00
|
|
|
];
|
2024-07-12 16:56:54 +02:00
|
|
|
|
|
|
|
home-manager.users.krizej.programs.home-manager.enable = true;
|
2024-07-10 22:10:55 +02:00
|
|
|
home-manager.users.krizej.home.packages = [
|
|
|
|
(pkgs.writeShellScriptBin "rebuild" ''
|
2024-07-12 16:56:54 +02:00
|
|
|
set -e
|
|
|
|
|
2024-07-10 22:10:55 +02:00
|
|
|
# hack: update autorandr stuffs
|
|
|
|
autorandr --match-edid --dry-run &> ~/nix/files/autorandr.txt
|
|
|
|
|
2024-07-12 16:56:54 +02:00
|
|
|
sudo nixos-rebuild switch --flake ~/nix --show-trace -v $@
|
2024-07-10 22:10:55 +02:00
|
|
|
'')
|
|
|
|
];
|
|
|
|
|
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;
|
|
|
|
}
|