Skip to content

Commit

Permalink
feat: added home-manager
Browse files Browse the repository at this point in the history
  • Loading branch information
fbosch committed Jun 21, 2024
1 parent 3ece4b8 commit b3e2d07
Show file tree
Hide file tree
Showing 3 changed files with 89 additions and 9 deletions.
8 changes: 8 additions & 0 deletions .config/home-manager/home.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{ pkgs, ... }: {
home.username = "fbb";
home.homeDirectory = "/Users/fbb";
programs.home-manager.enable = true;
home.packages = {
pkgs.stow
}
}
48 changes: 48 additions & 0 deletions nix-fbb/flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

42 changes: 33 additions & 9 deletions nix-fbb/flake.nix
Original file line number Diff line number Diff line change
@@ -1,13 +1,37 @@
{
description = "Home Manager configuration";

inputs = {
nixpkgs.url = "github:NixOS/nixpkgs"
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
};

outputs = { nixpkgs, home-manager, ... }: {
defaultPackage.aarch64-darwin = home-manager.defaultPackage.aarch64-darwin;
defaultPackage.x86_64-linux = home-manager.defaultPackage.x86_64-linux;

homeConfigurations = {
fbb = { pkgs }: {
x86_64-darwin = home-manager.lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages.x86_64-darwin;
modules = [ ./home.nix ];
};
aarch64-darwin = home-manager.lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages.aarch64-darwin;
modules = [ ./home.nix ];
};
x86_64-linux = home-manager.lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages.x86_64-linux;
modules = [ ./home.nix ];
};
aarch64-linux = home-manager.lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages.aarch64-linux;
modules = [ ./home.nix ];
};
};
};
};
outputs = { self, nixpkgs }: {
packages."aarch64-darwin".default = let pkgs = nixpkgs.legacyPackages."aarch64-darwin"; in pkgs.buildEnv {
name = "home=packages";
paths = with pkgs; [
git
]
}
}
}

0 comments on commit b3e2d07

Please sign in to comment.