slateport: use aly-nox hm cfg (#96)

* slateport: remove stylix

* slateport: override aly hm config

* slateport: override hm config with aly-nox

* aly: link nox and gui home configs
This commit is contained in:
Aly Raffauf 2024-08-22 08:58:00 -04:00 committed by GitHub
parent feff6f0994
commit 905745e6f8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 83 additions and 104 deletions

View file

@ -90,7 +90,8 @@
homeManagerModules = {
default = import ./homeManagerModules self;
aly = import ./homes/aly self;
aly = import ./homes/aly/gui.nix self;
aly-nox = import ./homes/aly/nox.nix self;
dustin = import ./homes/dustin self;
morgan = import ./homes/morgan self;
};

62
homes/aly/common.nix Normal file
View file

@ -0,0 +1,62 @@
{
config,
pkgs,
...
}: {
home = {
homeDirectory = "/home/aly";
packages = with pkgs; [
browsh
curl
];
stateVersion = "24.05";
username = "aly";
};
programs = {
git = {
enable = true;
lfs.enable = true;
userName = "Aly Raffauf";
userEmail = "aly@raffauflabs.com";
extraConfig = {
color.ui = true;
github.user = "alyraffauf";
push.autoSetupRemote = true;
};
};
gitui.enable = true;
home-manager.enable = true;
rbw = {
enable = true;
settings = {
email = "alyraffauf@fastmail.com";
lock_timeout = 14400;
};
};
};
systemd.user.startServices = "legacy"; # Needed for auto-mounting agenix secrets.
ar.home = {
apps = {
backblaze = {
enable = true;
keyIdFile = config.age.secrets.backblazeKeyId.path;
keyFile = config.age.secrets.backblazeKey.path;
};
fastfetch.enable = true;
helix.enable = true;
shell.enable = true;
tmux.enable = true;
yazi.enable = true;
};
};
}

View file

@ -5,6 +5,7 @@ self: {
...
}: {
imports = [
./common.nix
./firefox
./mail
./secrets.nix
@ -19,8 +20,6 @@ self: {
packages = with pkgs; [
bitwarden-desktop
browsh
curl
fractal
nicotine-plus
obsidian
@ -36,54 +35,20 @@ self: {
};
programs = {
git = {
enable = true;
lfs.enable = true;
userName = "Aly Raffauf";
userEmail = "aly@raffauflabs.com";
extraConfig = {
color.ui = true;
core.editor = "${lib.getExe config.ar.home.apps.zed.package} --wait";
github.user = "alyraffauf";
push.autoSetupRemote = true;
};
};
gitui.enable = true;
home-manager.enable = true;
rbw = {
enable = true;
settings = {
email = "alyraffauf@fastmail.com";
lock_timeout = 14400;
pinentry = pkgs.pinentry-gnome3;
};
};
git.extraConfig.core.editor = "${lib.getExe config.ar.home.apps.zed.package} --wait";
rbw.settings.pinentry = pkgs.pinentry-gnome3;
};
systemd.user.startServices = "legacy"; # Needed for auto-mounting agenix secrets.
ar.home = {
apps = {
backblaze = {
enable = true;
keyIdFile = config.age.secrets.backblazeKeyId.path;
keyFile = config.age.secrets.backblazeKey.path;
};
chromium.enable = true;
fastfetch.enable = true;
firefox.enable = true;
helix.enable = true;
kitty.enable = true;
shell.enable = true;
tmux.enable = true;
vsCodium.enable = true;
yazi.enable = true;
zed. enable = true;
zed.enable = true;
};
defaultApps = {

10
homes/aly/nox.nix Normal file
View file

@ -0,0 +1,10 @@
self: {
imports = [
./common.nix
./secrets.nix
self.homeManagerModules.default
self.inputs.agenix.homeManagerModules.default
];
programs.helix.defaultEditor = true;
}

View file

@ -1,7 +1,5 @@
{
config,
lib,
pkgs,
self,
...
}: let
@ -11,7 +9,6 @@ in {
./disko.nix
./home.nix
./secrets.nix
./stylix.nix
self.inputs.nixhw.nixosModules.common-intel-cpu
self.inputs.nixhw.nixosModules.common-intel-gpu
self.inputs.nixhw.nixosModules.common-bluetooth

View file

@ -1,9 +1,7 @@
{
home-manager = {
sharedModules = [
{
xdg.userDirs.music = "/mnt/Media/Music";
}
];
};
lib,
self,
...
}: {
home-manager.users.aly = lib.mkForce self.homeManagerModules.aly-nox;
}

View file

@ -1,54 +0,0 @@
{pkgs, ...}: {
stylix = {
enable = true;
base16Scheme = "${pkgs.base16-schemes}/share/themes/gruvbox-dark-hard.yaml";
image = let
wallpapers = builtins.fetchGit {
url = "https://github.com/alyraffauf/wallpapers.git";
rev = "ff956327520f2ecdd0f8b1cdab4420bef4095d38";
ref = "master";
};
in "${wallpapers}/wallhaven-mp886k.jpg";
imageScalingMode = "fill";
polarity = "dark";
cursor = {
name = "Bibata-Modern-Classic";
package = pkgs.bibata-cursors;
size = 24;
};
fonts = {
monospace = {
name = "UbuntuSansMono Nerd Font";
package = pkgs.nerdfonts.override {fonts = ["UbuntuSans"];};
};
sansSerif = {
name = "UbuntuSans Nerd Font";
package = pkgs.nerdfonts.override {fonts = ["UbuntuSans"];};
};
serif = {
name = "Vegur";
package = pkgs.vegur;
};
sizes = {
applications = 12;
desktop = 11;
popups = 12;
terminal = 13;
};
};
opacity = {
applications = 1.0;
desktop = 0.8;
terminal = 0.8;
popups = 0.8;
};
};
}