diff --git a/flake.lock b/flake.lock index 93f4685..56bbd1d 100644 --- a/flake.lock +++ b/flake.lock @@ -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", diff --git a/flake.nix b/flake.nix index 6eb999f..b3a50e7 100644 --- a/flake.nix +++ b/flake.nix @@ -75,7 +75,7 @@ modules = [ # ./hosts/base.nix ./hosts/artemis - homeConf + ./modules/home ]; specialArgs = { inherit inputs; }; }; diff --git a/modules/home/default.nix b/modules/home/default.nix new file mode 100644 index 0000000..e44b06e --- /dev/null +++ b/modules/home/default.nix @@ -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; } + } +} \ No newline at end of file diff --git a/modules/home/nyxerinys/default.nix b/modules/home/nyxerinys/default.nix index fdc4c85..1e4cbd6 100644 --- a/modules/home/nyxerinys/default.nix +++ b/modules/home/nyxerinys/default.nix @@ -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