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.inputs.nixpkgs.follows = "nixpkgs";
};
outputs = { self, nixpkgs, home-manager} : {
defaultPackage.x86_64-linux = home-manager.defaultPackage.x86_64-linux;
homeConfigurations = {
"tyrel" = home-manager.lib.homeManagerConfiguration {
targets.genericLinux.enable = true;
system = "x86_64-linux";
homeDirectory = "/home/tyrel";
username = "tyrel";
configuration.imports = [
../hosts/blackbox-jr/default.nix
../hosts/blackbox-jr/home-manager.nix
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;
homeConfigurations = {
"tyrel" = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
modules = [
../hosts/blackbox-jr/default.nix
../hosts/_common/home-manager.nix
{
home = {
homeDirectory = "/home/tyrel";
username = "tyrel";
stateVersion = "22.05";
};
}
];
};
};
};
}

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
#nix build ./_ubuntu --extra-experimental-features "nix-command flakes" -vvv
nix run _ubuntu switch
nix run ./_ubuntu switch -vv
home-manager switch --flake ./_ubuntu