Skip to content

Commit

Permalink
Added home-manager to nixos section of pi, much better :')
Browse files Browse the repository at this point in the history
  • Loading branch information
rasmus-kirk committed Sep 20, 2024
1 parent 5e5242f commit 75a4a02
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 9 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,15 @@
nixos-hardware.nixosModules.raspberry-pi-4
self.nixosModules.default
nixarr.nixosModules.default
home-manager.nixosModules.home-manager
{
home-manager.users.user.imports = [
./configurations/home-manager/pi/home.nix
self.homeManagerModules.default
];
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
}
];

specialArgs = {inherit inputs;};
Expand Down
2 changes: 0 additions & 2 deletions modules/home-manager/homeManagerScripts/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,6 @@ with lib; let
hm-rebuild = pkgs.writeShellApplication {
name = "hm-rebuild";
text = ''
# Update the inputs of this repo on every rebuild
nix flake update kirk-modules --flake ${cfg.configDir} &&
# Switch configuration, backing up files
home-manager switch -b backup --flake ${configDir}#${cfg.machine}
'';
Expand Down

0 comments on commit 75a4a02

Please sign in to comment.