Generation 99 2024-04-22 16:05:47 (current)
This commit is contained in:
parent
2979abf1a8
commit
636a19cb76
23
flake.nix
23
flake.nix
@ -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;};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@ -3,6 +3,19 @@
|
||||
pkgs,
|
||||
...
|
||||
}: 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 =
|
||||
pkgs.writeShellScriptBin ".nixos-rebuild"
|
||||
''
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user