linuxy
This commit is contained in:
parent
66e6688a46
commit
3af7c0d27a
@ -6,22 +6,27 @@
|
||||
home-manager.url = "github:nix-community/home-manager";
|
||||
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;
|
||||
|
||||
homeConfigurations = {
|
||||
"tyrel" = home-manager.lib.homeManagerConfiguration {
|
||||
targets.genericLinux.enable = true;
|
||||
system = "x86_64-linux";
|
||||
inherit pkgs;
|
||||
modules = [
|
||||
../hosts/blackbox-jr/default.nix
|
||||
../hosts/_common/home-manager.nix
|
||||
{
|
||||
home = {
|
||||
homeDirectory = "/home/tyrel";
|
||||
username = "tyrel";
|
||||
configuration.imports = [
|
||||
../hosts/blackbox-jr/default.nix
|
||||
../hosts/blackbox-jr/home-manager.nix
|
||||
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
|
||||
#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