Fixed up home-manager host specific setups

This commit is contained in:
Chris Toph 2024-09-25 14:29:19 -04:00
parent d7b15ce44d
commit 3f3f749502
15 changed files with 32 additions and 97 deletions

View file

@ -1,11 +1,15 @@
{ lib, pkgs, osConfig, ... }:
{ {
programs.fastfetch = { programs.fastfetch = let
# TODO: move home mnager out of standalone so i dont need so use --impure for this
hostname = builtins.getEnv "HOSTNAME";
logoFile = ./. + "/host/${hostname}.txt";
in {
enable = true; enable = true;
settings = { settings = {
logo = { logo = {
# Created with Chafa # Created with Chafa
# chafa -s 26x13 -w 9 --symbols vhalf --view-size 26x13 cloud.png > cloud.txt source = builtins.readFile logoFile;
source = builtins.readFile ./cloud.txt;
type = "data"; type = "data";
position = "left"; position = "left";
padding = { padding = {

View file

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,84 +0,0 @@
{
programs.fastfetch = {
enable = true;
settings = {
logo = {
# Created with Chafa
# chafa -s 26x13 -w 9 --symbols stipple+vhalf --view-size 26x13 nixos.png > nixos.txt
source = builtins.readFile ./nixos.txt;
type = "data";
position = "left";
padding = {
top = 0;
};
};
display = {
separator = " ";
};
modules = [
{
key = "";
type = "custom";
}
{
key = " {#31} user {#keys}";
type = "title";
format = "{user-name}";
}
{
key = " {#32}󰇅 host {#keys}";
type = "title";
format = "{host-name}";
}
{
key = " {#33}󰅐 uptime {#keys}";
type = "uptime";
}
{
key = " {#34}{icon} distro {#keys}";
type = "os";
}
{
key = " {#36}󰇄 desktop {#keys}";
type = "de";
}
{
key = " {#32} shell {#keys}";
type = "shell";
}
{
key = " {#33}󰍛 cpu {#keys}";
type = "cpu";
showPeCoreCount = true;
}
{
key = " {#34}󰉉 disk {#keys}";
type = "disk";
folders = "/";
}
{
key = " {#35} memory {#keys}";
type = "memory";
}
{
key = " {#36}󰩟 network {#keys}";
type = "localip";
format = "{ipv4} ({ifname})";
}
{
key = "";
type = "custom";
}
{
key = " {#39} colors {#keys}";
type = "colors";
symbol = "circle";
}
{
key = "";
type = "custom";
}
];
};
};
}

View file

View file

@ -47,8 +47,7 @@ in {
}; };
}; };
## PACKAGES ## ## ENVIORMENT & PACKAGES ##
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
git git
micro micro
@ -57,4 +56,8 @@ in {
sshfs sshfs
wget wget
]; ];
environment.variables = {
HOSTNAME = hostname;
};
} }

View file

@ -55,7 +55,7 @@ in {
}; };
}; };
## PACKAGES ## ## ENVIORMENT & PACKAGES ##
nixpkgs.overlays = [ (import ./overlays) ]; nixpkgs.overlays = [ (import ./overlays) ];
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
git git
@ -68,4 +68,8 @@ in {
snapraid-runner snapraid-runner
wget wget
]; ];
environment.variables = {
HOSTNAME = hostname;
};
} }

View file

@ -43,7 +43,7 @@ in {
}; };
}; };
## PACKAGES ## ## ENVIORMENT & PACKAGES ##
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
git git
micro micro
@ -52,4 +52,8 @@ in {
sshfs sshfs
wget wget
]; ];
environment.variables = {
HOSTNAME = hostname;
};
} }

View file

@ -39,7 +39,7 @@ in {
}; };
}; };
## PACKAGES ## ## ENVIORMENT & PACKAGES ##
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
git git
micro micro
@ -51,6 +51,10 @@ in {
x2goserver x2goserver
]; ];
environment.variables = {
HOSTNAME = hostname;
};
## VS CODE ## ## VS CODE ##
programs.nix-ld = { programs.nix-ld = {
enable = true; enable = true;

View file

@ -3,10 +3,6 @@
let let
hostname = "proxy"; hostname = "proxy";
admin = "toph";
password = "[REDACTED]";
timeZone = "America/New_York";
defaultLocale = "en_US.UTF-8";
in { in {
@ -50,7 +46,7 @@ in {
}; };
}; };
## PACKAGES ## ## ENVIORMENT & PACKAGES ##
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
git git
micro micro
@ -58,4 +54,8 @@ in {
ranger ranger
sshfs sshfs
]; ];
environment.variables = {
HOSTNAME = hostname;
};
} }