users/jan: use mkmerge for nixpkgs overlays

This commit is contained in:
Dmitriy Pleshevskiy 2022-10-10 07:52:41 +03:00
parent 5ad41a6a08
commit 7b09b44d3e
Signed by: pleshevskiy
GPG key ID: 1B59187B161C0215
2 changed files with 14 additions and 6 deletions

View file

@ -59,6 +59,11 @@
${nixos-rebuild}/bin/nixos-rebuild switch --flake .#${hostname}
'')
self.nixosConfigurations);
test = lib.recurseIntoAttrs (lib.mapAttrs
(hostname: machine: pkgs.writeShellScript "test-${hostname}" ''
${nixos-rebuild}/bin/nixos-rebuild test --flake .#${hostname}
'')
self.nixosConfigurations);
});
devShells = {

View file

@ -2,12 +2,15 @@
let secrets = import ./secrets.nix; in
{
nixpkgs.overlays = lib.mkAfter ((import ../../overlays) ++ [
inputs.wired.overlays.default
inputs.myneovim.overlays.default
inputs.vnetod.overlay
inputs.nil.overlays.default
]);
nixpkgs.overlays = lib.mkMerge [
(lib.mkBefore (import ../../overlays))
(lib.mkAfter [
inputs.wired.overlays.default
inputs.myneovim.overlays.default
inputs.vnetod.overlay
inputs.nil.overlays.default
])
];
users.users.jan = {
isNormalUser = true;