working? plus cleanup and fallbacks

This commit is contained in:
2025-11-17 12:12:17 -05:00
parent 6561e37119
commit 4207b320c9
9 changed files with 29 additions and 47 deletions

View File

@@ -160,9 +160,8 @@
pkgs = nixpkgs.legacyPackages.${system};
extraSpecialArgs = {
inherit userName userEmail hostname;
ghostty = ghostty.packages.${system}.default;
isNixOS = false;
inherit userName userEmail hostname ghostty;
isNixOS = false;
role = "workstation";
};
modules = [

View File

@@ -1,8 +1,7 @@
{
pkgs,
lib,
isNixOS,
role,
isNixOS ? true,
...
}: {
programs.firefox = {

View File

@@ -1,19 +1,20 @@
{ lib
, pkgs
, userName
, userEmail
, ghostty
, isNixOS ? true
, role
, ...
}:
let
# Have a file structure that holds all the configuration files that can't be configured by Nix
# TODO: Have a file structure that holds all the configuration files that can't be configured by Nix (or I haven't found the time to do so)
dirs = {
defaults = ../defaults;
};
in
{
_module.args = {
inherit dirs;
};
# Import sub modules
imports = [
./packages

View File

@@ -1,5 +1,4 @@
{
lib,
pkgs,
...
}: {
@@ -13,6 +12,8 @@
../bat.nix
];
nixpkgs.config.allowUnfree = true;
home.packages = with pkgs; [
# archives
zip

View File

@@ -1,7 +1,5 @@
{
pkgs,
...
}: {
{ lib, pkgs, ... }:
lib.mkIf pkgs.stdenv.isDarwin {
home.packages = with pkgs; [
discord
ollama

View File

@@ -1,20 +1,11 @@
{ pkgs, lib, role, ... }:
{ lib, role, ... }:
{
imports =
[ ./common.nix ];
config = lib.mkMerge [
(lib.mkIf pkgs.stdenv.isDarwin {
imports = [ ./darwin.nix ];
})
(lib.mkIf pkgs.stdenv.isLinux {
imports = [ ./linux.nix ];
})
(lib.mkIf (role == "workstation") {
imports = [ ./workstation.nix ];
})
(lib.mkIf (role == "server") {
imports = [ ./server.nix ];
})
];
}
[
./common.nix
./darwin.nix
./linux.nix
]
++ lib.optional (role == "workstation") ./workstation.nix
++ lib.optional (role == "server") ./server.nix;
}

View File

@@ -1,19 +1,16 @@
{
pkgs,
...
}: {
{ lib, pkgs, isNixOS ? true, ... }:
lib.mkIf pkgs.stdenv.isLinux {
home.packages = with pkgs; [
imv
xdg-utils
] ++ lib.optional isNixOS [
betterdiscordctl
vesktop
xdg-utils
mcrcon
xfce.thunar
pavucontrol
godot
aseprite
gpu-screen-recorder
gpu-screen-recorder-gtk
# ungoogled-chromium
];
}

View File

@@ -1,4 +1,4 @@
{ pkgs, ... }: {
home.packages = with pkgs; [
];
home.packages = [
];
}

View File

@@ -1,16 +1,12 @@
{
lib,
pkgs,
dirs,
userName,
userEmail,
ghostty,
isNixOS,
isNixOS ? true,
...
}: {
imports = [
../terminal.nix
../broswer.nix
../browser.nix
../zellij.nix
../lazygit.nix
../k9s.nix