Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
yousiki committed Feb 9, 2024
1 parent ec27fd3 commit e8c7988
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 5 deletions.
2 changes: 2 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@
commonProfiles
darwinConfigurations
darwinProfiles
homeConfigurations
homeProfiles
nixosConfigurations
nixosProfiles
;
Expand Down
7 changes: 4 additions & 3 deletions src/commonProfiles/packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,22 @@
}:
with builtins // lib; {
environment.systemPackages = with pkgs; [
bat
bottom
btop
curl
duf
eza
fd
fzf
gdu
gh
git
helix
home-manager
htop
jq
man
neofetch
ripgrep
rsync
vim
wget
zellij
Expand Down
4 changes: 2 additions & 2 deletions src/darwinConfigurations/sakamoto/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# darwinConfigurations.sakamoto
# homeConfigurations.yousiki

`sakamoto` is my personal MacbookPro (x86_64).
`yousiki` is my username.
15 changes: 15 additions & 0 deletions src/darwinConfigurations/sakamoto/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,21 @@
commonProfiles.nix
commonProfiles.packages
darwinProfiles.applications

# Home-manager module
globals.inputs.home-manager.darwinModules.home-manager
{
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
extraSpecialArgs = {inherit globals;};
users.yousiki = {
imports = [
globals.outputs.homeProfiles.base
];
};
};
}
];
in
globals.inputs.darwin.lib.darwinSystem {
Expand Down
14 changes: 14 additions & 0 deletions src/homeProfiles/base.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{globals, ...}: {
config,
lib,
pkgs,
...
}:
with builtins // lib; {
home.homeDirectory =
if hasSuffix "-darwin" pkgs.system
then "/Users/${config.home.username}"
else "/home/${config.home.username}";

home.stateVersion = "23.05";
}

0 comments on commit e8c7988

Please sign in to comment.