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 programs.fastfetch = let
# TODO: move home mnager out of standalone so i dont need so use --impure for this hostname = config.home.sessionVariables.HOSTNAME;
hostname = builtins.getEnv "HOSTNAME";
logoFile = ./. + "/host/${hostname}.txt"; logoFile = ./. + "/host/${hostname}.txt";
in { in {
enable = true; 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 # Module imports
imports = [ imports = [
./modules/fastfetch # Common Modules
./modules/fish ../fish
../fastfetch
]; ];
home = { home = {
username = "toph"; username = "toph";
homeDirectory = "/home/toph"; homeDirectory = "/home/toph";
stateVersion = "24.05"; stateVersion = "24.05";
# Packages
packages = with pkgs; [
fastfetch
fish
fishPlugins.grc
fishPlugins.tide
grc
];
# file = {
# ".config" = {
# recursive = true;
# source = ../.config;
# };
# };
sessionVariables = { sessionVariables = {
HOSTNAME = hostName;
EDITOR = "micro"; EDITOR = "micro";
VISUAL = "micro"; VISUAL = "micro";
XDG_CONFIG_HOME = "$HOME/.config"; XDG_CONFIG_HOME = "$HOME/.config";

View file

@ -67,29 +67,54 @@
# overlays = [ (import ./nixos/overlays) ]; # overlays = [ (import ./nixos/overlays) ];
}; };
in { in {
"toph@caenus" = home-manager.lib.homeManagerConfiguration { "toph@caenus" = let
hostName = "caenus";
pkgs = armPkgs; 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; 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; 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; 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; 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; [ environment.systemPackages = with pkgs; [
git git
micro micro
nodejs_22
openbox openbox
openssh openssh
pnpm
prettierd
ranger ranger
sshfs sshfs
wget 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
];
}