re organize home

This commit is contained in:
nyxerinys 2026-06-22 15:54:59 -05:00
parent 817e85b1be
commit 1c1615c5f8
4 changed files with 79 additions and 1 deletions

58
flake.lock generated
View file

@ -1,5 +1,22 @@
{
"nodes": {
"brew-src": {
"flake": false,
"locked": {
"lastModified": 1781226006,
"narHash": "sha256-w4ZTuOnhYiDxjaynrMTASzp802QblBWmo3wpB8wVN4Y=",
"owner": "Homebrew",
"repo": "brew",
"rev": "109191be4988470b51a60a5ef1998520aa24c01b",
"type": "github"
},
"original": {
"owner": "Homebrew",
"ref": "6.0.1",
"repo": "brew",
"type": "github"
}
},
"flake-parts": {
"inputs": {
"nixpkgs-lib": [
@ -21,6 +38,27 @@
"type": "github"
}
},
"home-manager": {
"inputs": {
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1782154529,
"narHash": "sha256-mVdyS2SxbPGNHTJX4n4EUMT/S2BPyZJ/ZR2UhkJcSF4=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "af11a877f238208676b596a5b6c3f3d8dcf5a86b",
"type": "github"
},
"original": {
"owner": "nix-community",
"ref": "master",
"repo": "home-manager",
"type": "github"
}
},
"nix-darwin": {
"inputs": {
"nixpkgs": [
@ -42,6 +80,24 @@
"type": "github"
}
},
"nix-homebrew": {
"inputs": {
"brew-src": "brew-src"
},
"locked": {
"lastModified": 1781389246,
"narHash": "sha256-ORqLAo/hoJdsZC7UPAuEHev6S0+XIqKEC7vjo5prz1k=",
"owner": "zhaofengli",
"repo": "nix-homebrew",
"rev": "de7953a08ed4bb9245be043e468561c17b89130d",
"type": "github"
},
"original": {
"owner": "zhaofengli",
"repo": "nix-homebrew",
"type": "github"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1781808408,
@ -81,7 +137,9 @@
},
"root": {
"inputs": {
"home-manager": "home-manager",
"nix-darwin": "nix-darwin",
"nix-homebrew": "nix-homebrew",
"nixpkgs": "nixpkgs",
"nur": "nur",
"secrets": "secrets",

View file

@ -75,7 +75,7 @@
modules = [
# ./hosts/base.nix
./hosts/artemis
homeConf
./modules/home
];
specialArgs = { inherit inputs; };
};

16
modules/home/default.nix Normal file
View file

@ -0,0 +1,16 @@
{ inputs, ... }:
{
imports = [
inputs.home-manager.darwinModules.home-manager
];
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
users = {
"nyxerinys" = import ./nyxerinys;
};
extraSpecialArgs = { inherit inputs; }
}
}

View file

@ -5,6 +5,10 @@
# paths it should manage.
home.username = "nyxerinys";
home.homeDirectory = "/home/nyxerinys";
home.packages = with pkgs; [
discord
];
# This value determines the Home Manager release that your
# configuration is compatible with. This helps avoid breakage