proper git input

main
Zynh Ludwig 2024-02-28 20:37:01 -08:00
parent 7b5c3b956c
commit ce1d4e71ab
5 changed files with 29 additions and 14 deletions

3
.gitmodules vendored
View File

@ -1,3 +0,0 @@
[submodule "fish/themes/val-cat"]
path = fish/themes/val-cat
url = https://git.zynh.me/Zynh0722/omf-theme.git

@ -1 +0,0 @@
Subproject commit 75549ce64044336ed14e502f1c1ab8bf98184990

View File

@ -1,5 +1,21 @@
{
"nodes": {
"fish_theme": {
"flake": false,
"locked": {
"lastModified": 1702794161,
"narHash": "sha256-uGtLlPvjLfrngdByjCYp9mUuZasg3Z6mGfkD1mdRs1o=",
"ref": "refs/heads/main",
"rev": "75549ce64044336ed14e502f1c1ab8bf98184990",
"revCount": 24,
"type": "git",
"url": "https://git.zynh.me/Zynh0722/omf-theme"
},
"original": {
"type": "git",
"url": "https://git.zynh.me/Zynh0722/omf-theme"
}
},
"home-manager": {
"inputs": {
"nixpkgs": [
@ -38,6 +54,7 @@
},
"root": {
"inputs": {
"fish_theme": "fish_theme",
"home-manager": "home-manager",
"nixpkgs": "nixpkgs"
}

View File

@ -8,6 +8,11 @@
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
fish_theme = {
url = "git+https://git.zynh.me/Zynh0722/omf-theme";
flake = false;
};
};
outputs = { self, nixpkgs, ... }@inputs:

View File

@ -1,8 +1,5 @@
{ config, pkgs, extraSpecialArgs, ... }:
{ config, pkgs, inputs, ... }:
# let
#
# in
{
# Home Manager needs a bit of information about you and the paths it should
# manage.
@ -42,11 +39,11 @@
# Home Manager is pretty good at managing dotfiles. The primary way to manage
# plain files is through 'home.file'.
home.file = {
"${config.xdg.dataHome}/omf/themes/val-cat" = {
enable = true;
source = config.lib.file.mkOutOfStoreSymlink /. + "${config.xdg.configHome}/nixos/fish/themes/val-cat";
recursive = true;
};
# "${config.xdg.dataHome}/omf/themes/val-cat" = {
# enable = true;
# source = config.lib.file.mkOutOfStoreSymlink /. + "${config.xdg.configHome}/nixos/fish/themes/val-cat";
# recursive = true;
# };
};
home.sessionVariables = {
@ -57,7 +54,7 @@
programs.fish = {
enable = true;
interactiveShellInit =
builtins.readFile ./fish/themes/val-cat/fish_prompt.fish +
builtins.readFile "${inputs.fish_theme}/fish_prompt.fish" +
''
set -U fish_greeting