Generation 99 2024-04-22 16:05:47 (current)

This commit is contained in:
Jonas Röger 2024-04-22 16:44:32 +02:00
parent 2979abf1a8
commit 636a19cb76
2 changed files with 36 additions and 0 deletions

View File

@ -82,5 +82,28 @@
]; ];
}; };
}; };
homeConfigurations."jonas" = home-manager.lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages.${system};
# Specify your home configuration modules here, for example,
# the path to your home.nix.
modules = [
({
config,
pkgs,
...
}: {nixpkgs.overlays = [overlay-unstable];})
(
{...}: {nixpkgs.config.allowUnfree = true;}
)
inputs.plasma-manager.homeManagerModules.plasma-manager
inputs.sops-nix.homeManagerModules.sops
./home/jonas/home.nix
];
# Optionally use extraSpecialArgs
# to pass through arguments to home.nix
extraSpecialArgs = {inherit inputs;};
};
}; };
} }

View File

@ -3,6 +3,19 @@
pkgs, pkgs,
... ...
}: let }: let
home-rebuild =
pkgs.writeShellScriptBin ".home-rebuild"
''
set -e
pushd ~/.nixos/
${pkgs.alejandra}/bin/alejandra . &>/dev/null
${pkgs.git}/bin/git diff -U0
echo "NixOS Rebuilding..."
${pkgs.unstable.nh}/bin/nh home switch ~/.nixos
gen=$(home-manager generations | head -n1 | ${pkgs.awk} '{print "Gen" $5 " @ " $1}')
${pkgs.git}/bin/git commit --no-gpg-sign -am "Home $gen"
popd
'';
rebuild = rebuild =
pkgs.writeShellScriptBin ".nixos-rebuild" pkgs.writeShellScriptBin ".nixos-rebuild"
'' ''