diff --git a/configuration.nix b/configuration.nix index c0cb3dc..9d85c02 100644 --- a/configuration.nix +++ b/configuration.nix @@ -2,7 +2,7 @@ # your system. Help is available in the configuration.nix(5) man page # and in the NixOS manual (accessible by running `nixos-help`). -{ config, pkgs, ... }: +{ config, pkgs, home-manager, ... }: { imports = @@ -123,6 +123,8 @@ externaldrive UUID=b9e3979c-9362-4242-a835-6dd702dfb0ee /etc/externalHD_keyfile. ]; }; + home-manager.users.alex = import ./home.nix; + fileSystems."/home/alex/Documents" = { device = "/media/external/Documents"; options = [ "bind" ]; diff --git a/flake.lock b/flake.lock index 1ea0532..8a4989f 100644 --- a/flake.lock +++ b/flake.lock @@ -1,5 +1,25 @@ { "nodes": { + "home-manager": { + "inputs": { + "nixpkgs": [ + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1686922395, + "narHash": "sha256-ysevinohPxdKp0RXyhDRsz1/vh1eXazg4AWp0n5X/U4=", + "owner": "nix-community", + "repo": "home-manager", + "rev": "9ba7b3990eb1f4782ea3f5fe7ac4f3c88dd7a32c", + "type": "github" + }, + "original": { + "owner": "nix-community", + "repo": "home-manager", + "type": "github" + } + }, "nixpkgs": { "locked": { "lastModified": 1686921029, @@ -18,6 +38,7 @@ }, "root": { "inputs": { + "home-manager": "home-manager", "nixpkgs": "nixpkgs" } } diff --git a/flake.nix b/flake.nix index e5fcf12..56907a1 100644 --- a/flake.nix +++ b/flake.nix @@ -16,8 +16,6 @@ { home-manager.useGlobalPkgs = true; home-manager.useUserPackages = true; - home-manager.users.alex = import ./home.nix; - # Optionally, use home-manager.extraSpecialArgs to pass # arguments to home.nix }