Moved home configurations to a per host basis

This commit is contained in:
Chris Toph 2024-09-26 00:02:12 -04:00
parent 8ffe6f80bd
commit 87dde5a2af
19 changed files with 130 additions and 40 deletions

View file

@ -1,8 +1,7 @@
{ lib, pkgs, osConfig, ... }:
{ lib, pkgs, config, ... }:
{
programs.fastfetch = let
# TODO: move home mnager out of standalone so i dont need so use --impure for this
hostname = builtins.getEnv "HOSTNAME";
hostname = config.home.sessionVariables.HOSTNAME;
logoFile = ./. + "/host/${hostname}.txt";
in {
enable = true;

View file

Before

Width:  |  Height:  |  Size: 8.9 KiB

After

Width:  |  Height:  |  Size: 8.9 KiB

View file

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 18 KiB

View file

Before

Width:  |  Height:  |  Size: 31 KiB

After

Width:  |  Height:  |  Size: 31 KiB

View file

@ -1,32 +1,18 @@
{ pkgs, ... }:
{ pkgs, hostName, ... }:
{
# Module imports
imports = [
./modules/fastfetch
./modules/fish
# Common Modules
../fish
../fastfetch
];
home = {
username = "toph";
homeDirectory = "/home/toph";
stateVersion = "24.05";
# Packages
packages = with pkgs; [
fastfetch
fish
fishPlugins.grc
fishPlugins.tide
grc
];
# file = {
# ".config" = {
# recursive = true;
# source = ../.config;
# };
# };
sessionVariables = {
HOSTNAME = hostName;
EDITOR = "micro";
VISUAL = "micro";
XDG_CONFIG_HOME = "$HOME/.config";

View file

@ -67,29 +67,54 @@
# overlays = [ (import ./nixos/overlays) ];
};
in {
"toph@caenus" = home-manager.lib.homeManagerConfiguration {
"toph@caenus" = let
hostName = "caenus";
pkgs = armPkgs;
modules = [ ./home ];
home = ./. + "/host/${hostName}/home";
in home-manager.lib.homeManagerConfiguration {
inherit pkgs;
extraSpecialArgs = { inherit hostName; };
modules = [ home ];
};
"toph@cloud" = home-manager.lib.homeManagerConfiguration {
"toph@cloud" = let
hostName = "cloud";
pkgs = x86Pkgs;
modules = [ ./home ];
home = ./. + "/host/${hostName}/home";
in home-manager.lib.homeManagerConfiguration {
inherit pkgs;
extraSpecialArgs = { inherit hostName; };
modules = [ home ];
};
"toph@dockge" = home-manager.lib.homeManagerConfiguration {
"toph@dockge" = let
hostName = "dockge";
pkgs = x86Pkgs;
modules = [ ./home ];
home = ./. + "/host/${hostName}/home";
in home-manager.lib.homeManagerConfiguration {
inherit pkgs;
extraSpecialArgs = { inherit hostName; };
modules = [ home ];
};
"toph@nix" = home-manager.lib.homeManagerConfiguration {
"toph@nix" = let
hostName = "nix";
pkgs = x86Pkgs;
modules = [ ./home ];
home = ./. + "/host/${hostName}/home";
in home-manager.lib.homeManagerConfiguration {
inherit pkgs;
extraSpecialArgs = { inherit hostName; };
modules = [ home ];
};
"toph@proxy" = home-manager.lib.homeManagerConfiguration {
"toph@proxy" = let
hostName = "proxy";
pkgs = x86Pkgs;
modules = [ ./home ];
home = ./. + "/host/${hostName}/home";
in home-manager.lib.homeManagerConfiguration {
inherit pkgs;
extraSpecialArgs = { inherit hostName; };
modules = [ home ];
};
};
};

View file

@ -0,0 +1,16 @@
{ pkgs, ... }:
{
# Module imports
imports = [
# Common Modules
../../../common/home
];
home.packages = with pkgs; [
fastfetch
fish
fishPlugins.grc
fishPlugins.tide
grc
];
}

View file

@ -0,0 +1,16 @@
{ pkgs, ... }:
{
# Module imports
imports = [
# Common Modules
../../../common/home
];
home.packages = with pkgs; [
fastfetch
fish
fishPlugins.grc
fishPlugins.tide
grc
];
}

View file

@ -0,0 +1,16 @@
{ pkgs, ... }:
{
# Module imports
imports = [
# Common Modules
../../../common/home
];
home.packages = with pkgs; [
fastfetch
fish
fishPlugins.grc
fishPlugins.tide
grc
];
}

View file

@ -43,11 +43,8 @@ in {
environment.systemPackages = with pkgs; [
git
micro
nodejs_22
openbox
openssh
pnpm
prettierd
ranger
sshfs
wget

19
host/nix/home/default.nix Normal file
View file

@ -0,0 +1,19 @@
{ pkgs, ... }:
{
# Module imports
imports = [
# Common Modules
../../../common/home
];
home.packages = with pkgs; [
fastfetch
fish
fishPlugins.grc
fishPlugins.tide
grc
nodejs_22
pnpm
prettierd
];
}

View file

@ -0,0 +1,16 @@
{ pkgs, ... }:
{
# Module imports
imports = [
# Common Modules
../../../common/home
];
home.packages = with pkgs; [
fastfetch
fish
fishPlugins.grc
fishPlugins.tide
grc
];
}