linuxy
This commit is contained in:
parent
66e6688a46
commit
3af7c0d27a
@ -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 } :
|
||||||
defaultPackage.x86_64-linux = home-manager.defaultPackage.x86_64-linux;
|
let
|
||||||
|
system = "x86_64-linux";
|
||||||
homeConfigurations = {
|
pkgs = nixpkgs.legacyPackages.${system};
|
||||||
"tyrel" = home-manager.lib.homeManagerConfiguration {
|
in {
|
||||||
targets.genericLinux.enable = true;
|
defaultPackage.x86_64-linux = home-manager.defaultPackage.x86_64-linux;
|
||||||
system = "x86_64-linux";
|
homeConfigurations = {
|
||||||
homeDirectory = "/home/tyrel";
|
"tyrel" = home-manager.lib.homeManagerConfiguration {
|
||||||
username = "tyrel";
|
inherit pkgs;
|
||||||
configuration.imports = [
|
modules = [
|
||||||
../hosts/blackbox-jr/default.nix
|
../hosts/blackbox-jr/default.nix
|
||||||
../hosts/blackbox-jr/home-manager.nix
|
../hosts/_common/home-manager.nix
|
||||||
|
{
|
||||||
|
home = {
|
||||||
|
homeDirectory = "/home/tyrel";
|
||||||
|
username = "tyrel";
|
||||||
|
stateVersion = "22.05";
|
||||||
|
};
|
||||||
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
14
hosts/blackbox-jr/home-manager.nix
Normal file
14
hosts/blackbox-jr/home-manager.nix
Normal 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
|
||||||
|
|
||||||
|
}
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user