mirror of https://git.jolheiser.com/dotnix.git
parent
1d2e8ed75c
commit
1dca29b8e4
|
@ -21,6 +21,7 @@
|
|||
./ssh.nix
|
||||
./tiny.nix
|
||||
./wezterm.nix
|
||||
./xdg.nix
|
||||
./zoxide.nix
|
||||
];
|
||||
home = {
|
||||
|
|
|
@ -1 +1,7 @@
|
|||
{programs.go.enable = true;}
|
||||
{config, ...}: {
|
||||
programs.go = rec {
|
||||
enable = true;
|
||||
goPath = "${config.xdg.dataHome}/go";
|
||||
goBin = "${goPath}/bin";
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,4 +1,8 @@
|
|||
{pkgs, ...}: {
|
||||
{
|
||||
pkgs,
|
||||
config,
|
||||
...
|
||||
}: {
|
||||
programs.nushell = {
|
||||
enable = true;
|
||||
configFile.source = ./nushell/config.nu;
|
||||
|
@ -19,6 +23,10 @@
|
|||
use ${pkgs.nu_scripts}/share/nu_scripts/custom-completions/just/just.nu *
|
||||
use ${pkgs.nu_scripts}/share/nu_scripts/custom-completions/nix/nix-completions.nu *
|
||||
'';
|
||||
extraEnv = ''
|
||||
let-env GOPATH = "${config.xdg.dataHome}/go"
|
||||
let-env PATH = ($env.PATH | split row (char esep) | prepend '${config.xdg.dataHome}/go/bin')
|
||||
'';
|
||||
};
|
||||
xdg.configFile = {
|
||||
"nushell/jolheiser.nu".source = ./nushell/jolheiser.nu;
|
||||
|
|
|
@ -60,4 +60,3 @@ let-env NU_PLUGIN_DIRS = [
|
|||
|
||||
# To add entries to PATH (on Windows you might use Path), you can use the following pattern:
|
||||
# let-env PATH = ($env.PATH | split row (char esep) | prepend '/some/path')
|
||||
|
||||
|
|
|
@ -33,7 +33,7 @@ end)
|
|||
|
||||
-- config
|
||||
return {
|
||||
default_prog = { "nu", "--config", "~/.config/nushell/config.nu", "--env-config", "~/.config/nushell/config.nu" },
|
||||
default_prog = { "nu", "--config", "~/.config/nushell/config.nu", "--env-config", "~/.config/nushell/env.nu" },
|
||||
color_scheme = theme_for_appearance(wezterm.gui.get_appearance()),
|
||||
window_close_confirmation = 'NeverPrompt',
|
||||
window_background_opacity = opacity,
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
{config, ...}: {
|
||||
xdg = {
|
||||
enable = true;
|
||||
userDirs.enable = true;
|
||||
cacheHome = "${config.home.homeDirectory}/.cache";
|
||||
configHome = "${config.home.homeDirectory}/.config";
|
||||
dataHome = "${config.home.homeDirectory}/.local/share";
|
||||
};
|
||||
}
|
|
@ -41,7 +41,6 @@ in {
|
|||
users.users."${username}" = {
|
||||
extraGroups = ["wheel" "docker"];
|
||||
isNormalUser = true;
|
||||
shell = pkgs.nushell;
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
|
|
|
@ -43,7 +43,6 @@ in {
|
|||
users.users."${username}" = {
|
||||
extraGroups = ["wheel" "docker" "storage"];
|
||||
isNormalUser = true;
|
||||
shell = pkgs.nushell;
|
||||
};
|
||||
|
||||
system.stateVersion = "22.11";
|
||||
|
|
Loading…
Reference in New Issue