Moved more to home

This commit is contained in:
2026-01-23 12:06:59 -07:00
parent df15192e95
commit 5c081ed79b
8 changed files with 20 additions and 45 deletions

View File

@@ -14,8 +14,6 @@
./modules/programs.nix ./modules/programs.nix
./modules/hardware.nix ./modules/hardware.nix
./modules/services.nix ./modules/services.nix
./modules/aliases.nix
./modules/assets.nix
./modules/home.nix ./modules/home.nix
]; ];

View File

@@ -1,18 +0,0 @@
{ config, pkgs, ... }:
{
environment.shellAliases = {
# Nix Commands
"nix:rebuild" = "sudo nixos-rebuild switch";
"nix:update" = "sudo nixos-rebuild switch --upgrade";
"nix:purge" = "sudo nix-collect-garbage -d && sudo /run/current-system/bin/switch-to-configuration boot";
"nix:edit" = "$EDITOR /etc/nixos";
"nix:push" = "cd /etc/nixos && git add -A && git commit -m \"$(date -u +%s)\" && git push";
"nix:pull" = "cd /etc/nixos && git pull";
"nix:hw" = "sudo nixos-generate-config --show-hardware-config > /etc/nixos/hardware-configuration.nix";
# Utilities
"fixaudio" = "systemctl --user restart pipewire pipewire-pulse wireplumber";
"nf" = "neofetch";
};
}

View File

@@ -1,14 +0,0 @@
{ config, pkgs, lib, ... }:
let
settings = import ../settings.nix;
# The assets folder from the project root
assetsPath = ../assets;
in
{
# Use tmpfiles.rules to create the symlink at boot/activation
# L+ forces the creation of the symlink, removing existing file/dir if necessary
systemd.tmpfiles.rules = [
"L+ /home/${settings.username}/Assets - - - - ${assetsPath}"
];
}

View File

@@ -3,9 +3,6 @@
let let
home-manager = builtins.fetchTarball "https://github.com/nix-community/home-manager/archive/release-25.11.tar.gz"; home-manager = builtins.fetchTarball "https://github.com/nix-community/home-manager/archive/release-25.11.tar.gz";
settings = import ../settings.nix; settings = import ../settings.nix;
nur = import (builtins.fetchTarball "https://github.com/nix-community/NUR/archive/master.tar.gz") {
inherit pkgs;
};
homeModules = [ homeModules = [
./home/session.nix ./home/session.nix
./home/packages.nix ./home/packages.nix
@@ -28,7 +25,7 @@ in
home-manager.backupFileExtension = "backup"; home-manager.backupFileExtension = "backup";
home-manager.extraSpecialArgs = { home-manager.extraSpecialArgs = {
inherit settings nur; inherit settings;
}; };
home-manager.users.${settings.username} = { ... }: { home-manager.users.${settings.username} = { ... }: {

View File

@@ -1,6 +1,21 @@
{ pkgs, ... }: { pkgs, ... }:
{ {
home.shellAliases = {
# Nix Commands
"nix:rebuild" = "sudo nixos-rebuild switch";
"nix:update" = "sudo nixos-rebuild switch --upgrade";
"nix:purge" = "sudo nix-collect-garbage -d && sudo /run/current-system/bin/switch-to-configuration boot";
"nix:edit" = "$EDITOR /etc/nixos";
"nix:push" = "cd /etc/nixos && git add -A && git commit -m \"$(date -u +%s)\" && git push";
"nix:pull" = "cd /etc/nixos && git pull";
"nix:hw" = "sudo nixos-generate-config --show-hardware-config > /etc/nixos/hardware-configuration.nix";
# Utilities
"fixaudio" = "systemctl --user restart pipewire pipewire-pulse wireplumber";
"nf" = "neofetch";
};
programs.starship = { programs.starship = {
enable = true; enable = true;
enableBashIntegration = true; enableBashIntegration = true;

View File

@@ -10,11 +10,8 @@
gnumake gnumake
openssh openssh
nodePackages."pnpm" nodePackages."pnpm"
openssl
killall
ffmpeg ffmpeg
vscodium vscodium
usbutils
qmk qmk
neofetch neofetch
deepfilternet deepfilternet
@@ -36,4 +33,6 @@
# GNOME Extensions # GNOME Extensions
gnomeExtensions.appindicator gnomeExtensions.appindicator
]; ];
programs.obs-studio.enable = true;
} }

View File

@@ -1,6 +1,8 @@
{ config, ... }: { config, ... }:
{ {
home.file."Assets".source = ../../assets;
home.sessionVariables = { home.sessionVariables = {
BROWSER = "librewolf"; BROWSER = "librewolf";
SSH_AUTH_SOCK = "${config.home.homeDirectory}/.bitwarden-ssh-agent.sock"; SSH_AUTH_SOCK = "${config.home.homeDirectory}/.bitwarden-ssh-agent.sock";

View File

@@ -7,8 +7,6 @@
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
killall killall
usbutils usbutils
pavucontrol
ffmpeg
openssl openssl
qmk-udev-rules qmk-udev-rules
]; ];
@@ -23,6 +21,4 @@
}; };
programs.java.enable = true; programs.java.enable = true;
programs.obs-studio.enable = true;
} }