working? plus cleanup and fallbacks
This commit is contained in:
@@ -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 = [
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
{
|
||||
pkgs,
|
||||
lib,
|
||||
isNixOS,
|
||||
role,
|
||||
isNixOS ? true,
|
||||
...
|
||||
}: {
|
||||
programs.firefox = {
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
{
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
@@ -13,6 +12,8 @@
|
||||
../bat.nix
|
||||
];
|
||||
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
|
||||
home.packages = with pkgs; [
|
||||
# archives
|
||||
zip
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
{
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
{ lib, pkgs, ... }:
|
||||
lib.mkIf pkgs.stdenv.isDarwin {
|
||||
home.packages = with pkgs; [
|
||||
discord
|
||||
ollama
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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
|
||||
];
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ pkgs, ... }: {
|
||||
home.packages = with pkgs; [
|
||||
];
|
||||
home.packages = [
|
||||
];
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user