This commit is contained in:
Tyrel Souza 2023-01-02 10:23:09 -05:00
parent 66e6688a46
commit 3af7c0d27a
3 changed files with 35 additions and 15 deletions

View File

@ -6,22 +6,27 @@
home-manager.url = "github:nix-community/home-manager"; home-manager.url = "github:nix-community/home-manager";
home-manager.inputs.nixpkgs.follows = "nixpkgs"; home-manager.inputs.nixpkgs.follows = "nixpkgs";
}; };
outputs = { self, nixpkgs, home-manager} : { outputs = { self, nixpkgs, home-manager } :
let
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
in {
defaultPackage.x86_64-linux = home-manager.defaultPackage.x86_64-linux; defaultPackage.x86_64-linux = home-manager.defaultPackage.x86_64-linux;
homeConfigurations = { homeConfigurations = {
"tyrel" = home-manager.lib.homeManagerConfiguration { "tyrel" = home-manager.lib.homeManagerConfiguration {
targets.genericLinux.enable = true; inherit pkgs;
system = "x86_64-linux"; modules = [
../hosts/blackbox-jr/default.nix
../hosts/_common/home-manager.nix
{
home = {
homeDirectory = "/home/tyrel"; homeDirectory = "/home/tyrel";
username = "tyrel"; username = "tyrel";
configuration.imports = [ stateVersion = "22.05";
../hosts/blackbox-jr/default.nix };
../hosts/blackbox-jr/home-manager.nix }
]; ];
}; };
}; };
}; };
} }

View File

@ -0,0 +1,14 @@
{ pkgs, ... }:
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.tyrel = { pkgs, ... }: {
programs.home-manager.enable = true;
home.stateVersion = "22.05";
home.sessionVariables = {
XDG_CONFIG_HOME = "/home/tyrel/.config";
};
}; # -- HomeManager
}

View File

@ -2,4 +2,5 @@
#git add . # YOLO #git add . # YOLO
#nix build ./_ubuntu --extra-experimental-features "nix-command flakes" -vvv #nix build ./_ubuntu --extra-experimental-features "nix-command flakes" -vvv
nix run _ubuntu switch nix run ./_ubuntu switch -vv
home-manager switch --flake ./_ubuntu