This commit is contained in:
serenity-F 2026-08-31 15:44:04 +10:00
parent 695c67bce5
commit c351c646a3
No known key found for this signature in database
13 changed files with 222 additions and 75 deletions

View file

@ -1,4 +1,4 @@
{ config, ... }:
{ self, inputs, ... }:
# let bindings
let
@ -12,27 +12,42 @@ in
{
# list of modules to include
imports = [
./programs
./kitty.nix
./fish.nix
];
# terminal supermodule
flake.homeModules.terminal = { config, pkgs, ... }: {
# environment variables
home.sessionVariables = {
# list of modules to include
imports = [
# clean up ~
LESSHISTFILE = "${cache}/less/history";
LESSKEY = "${conf}/less/lesskey";
# terminal emulator
self.modules.kitty
# text editor
self.modules.helix
# file manager
self.modules.yazi
# shell and prompt
self.modules.fish
# version control
self.modules.git
WINEPREFIX = "${data}/wine";
XAUTHORITY = "$XDG_RUNTIME_DIR/Xauthority";
];
EDITOR = "helix";
DIRENV_LOG_FORMAT = "";
# environment variables
home.sessionVariables = {
# clean up ~
LESSHISTFILE = "${cache}/less/history";
LESSKEY = "${conf}/less/lesskey";
WINEPREFIX = "${data}/wine";
XAUTHORITY = "$XDG_RUNTIME_DIR/Xauthority";
EDITOR = "helix";
DIRENV_LOG_FORMAT = "";
# auto-run programs using nix-index-database
NIX_AUTO_RUN = "1";
};
# auto-run programs using nix-index-database
NIX_AUTO_RUN = "1";
};
}

View file

@ -1,12 +1,24 @@
{ self, inputs, ... }: {
perSystem = { pkgs, ... }: {
flake.modules.homeManager.fish = {
# defines a custom fish package
packages.myFish = inputs.wrapper-modules.wrappers.fish.wrap {
home.packages = with pkgs; [
fish
];
settings = {
foo = bar;
programs = {
# starship prompt
starship = {
enable = true;
settings = { };
};
# fish shell
fish = {
enable = true;
settings = { };
};
};

View file

@ -1,14 +1,15 @@
{ self, inputs, ... }: {
perSystem = { pkgs, ... }: {
# defines a custom git module
flake.modules.homeManager.git = {
# defines a custom git package
packages.myGit = inputs.wrapper-modules.wrappers.git.wrap {
settings = {
foo = bar;
};
# packages to include
home.packages = with pkgs; [
git
];
programs.git = {
enable = true;
};
};

View file

@ -1,10 +1,16 @@
{ self, inputs, ... }: {
# defines a custom helix module
flake.modules.homeManager.helix = {
home.packages = with pkgs; [
helix
];
programs.helix = {
enable = true; # enables helix
# enables helix
enable = true;
settings = {

View file

@ -1,26 +1,22 @@
{ self, inputs, ... }: {
flake.nixosModules.niri = { pkgs, lib, ... }: {
programs.niri = {
# defines a custom yazi module
flake.modules.homeManager.yazi = {
# packages to include
home.package = with pkgs; [
yazi
];
programs.yazi = {
# enables yazi
enable = true;
package = self.packages.${pkgs.stdenv.hostPlatform.system}.myNiri;
};
};
perSystem = { pkgs, ... }: {
# yazi settings
settings = { };
packages.myNiri = inputs.wrapper-modules.wrappers.niri.wrap {
inherit pkgs;
settings = {
foo = bar;
foorbar = {
bar = true;
foo = "always";
barbar = 5;
};
};
};
};
}