Compare commits
5 commits
5fe8e3107f
...
d0c040de7e
| Author | SHA1 | Date | |
|---|---|---|---|
| d0c040de7e | |||
| 1a545becef | |||
| 18bebb53e0 | |||
| c42ffcb1cb | |||
| ed23478899 |
3 changed files with 85 additions and 19 deletions
|
|
@ -25,16 +25,13 @@
|
|||
devices = [ "nodev" ];
|
||||
efiInstallAsRemovable = false;
|
||||
extraEntries = ''
|
||||
# Arch Linux EFI
|
||||
menuentry "Arch Linux" {
|
||||
chainloader (hd1,gpt1)/EFI/arch/grubx64.efi
|
||||
}
|
||||
# Windows Boot Manager
|
||||
menuentry "Windows" {
|
||||
chainloader /EFI/Microsoft/Boot/bootmgfw.efi
|
||||
}
|
||||
'';
|
||||
gfxmodeEfi = "1920x1080x32";
|
||||
default = 1;
|
||||
};
|
||||
|
||||
efi = {
|
||||
|
|
|
|||
74
env.nu
Normal file
74
env.nu
Normal file
|
|
@ -0,0 +1,74 @@
|
|||
# Code generated by zoxide. DO NOT EDIT.
|
||||
|
||||
# =============================================================================
|
||||
#
|
||||
# Hook configuration for zoxide.
|
||||
#
|
||||
|
||||
# Initialize hook to add new entries to the database.
|
||||
export-env {
|
||||
$env.config = (
|
||||
$env.config?
|
||||
| default {}
|
||||
| upsert hooks { default {} }
|
||||
| upsert hooks.env_change { default {} }
|
||||
| upsert hooks.env_change.PWD { default [] }
|
||||
)
|
||||
let __zoxide_hooked = (
|
||||
$env.config.hooks.env_change.PWD | any { try { get __zoxide_hook } catch { false } }
|
||||
)
|
||||
if not $__zoxide_hooked {
|
||||
$env.config.hooks.env_change.PWD = ($env.config.hooks.env_change.PWD | append {
|
||||
__zoxide_hook: true,
|
||||
code: {|_, dir| zoxide add -- $dir}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
# =============================================================================
|
||||
#
|
||||
# When using zoxide with --no-cmd, alias these internal functions as desired.
|
||||
#
|
||||
|
||||
# Jump to a directory using only keywords.
|
||||
def --env --wrapped __zoxide_z [...rest: string] {
|
||||
let path = match $rest {
|
||||
[] => {'~'},
|
||||
[ '-' ] => {'-'},
|
||||
[ $arg ] if ($arg | path expand | path type) == 'dir' => {$arg}
|
||||
_ => {
|
||||
zoxide query --exclude $env.PWD -- ...$rest | str trim -r -c "\n"
|
||||
}
|
||||
}
|
||||
cd $path
|
||||
}
|
||||
|
||||
# Jump to a directory using interactive search.
|
||||
def --env --wrapped __zoxide_zi [...rest:string] {
|
||||
cd $'(zoxide query --interactive -- ...$rest | str trim -r -c "\n")'
|
||||
}
|
||||
|
||||
# =============================================================================
|
||||
#
|
||||
# Commands for zoxide. Disable these using --no-cmd.
|
||||
#
|
||||
|
||||
alias z = __zoxide_z
|
||||
alias zi = __zoxide_zi
|
||||
|
||||
# =============================================================================
|
||||
#
|
||||
# Add this to your env file (find it by running `$nu.env-path` in Nushell):
|
||||
#
|
||||
# zoxide init nushell | save -f ~/.zoxide.nu
|
||||
#
|
||||
# Now, add this to the end of your config file (find it by running
|
||||
# `$nu.config-path` in Nushell):
|
||||
#
|
||||
# source ~/.zoxide.nu
|
||||
#
|
||||
# Note: zoxide only supports Nushell v0.89.0+.
|
||||
|
||||
|
||||
$env.config.buffer_editor = "micro"
|
||||
$env.config.show_banner = false
|
||||
25
home.nix
25
home.nix
|
|
@ -5,13 +5,9 @@
|
|||
...
|
||||
}:
|
||||
|
||||
let
|
||||
home-manager = builtins.fetchTarball "https://github.com/nix-community/home-manager/archive/release-25.11.tar.gz";
|
||||
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
(import "${home-manager}/nixos")
|
||||
<home-manager/nixos>
|
||||
./dconf.nix
|
||||
];
|
||||
|
||||
|
|
@ -21,7 +17,7 @@ in
|
|||
home.packages = with pkgs; [
|
||||
brave
|
||||
nixfmt-rfc-style
|
||||
nil
|
||||
nixd
|
||||
amberol
|
||||
jetbrains.idea
|
||||
prismlauncher
|
||||
|
|
@ -29,6 +25,8 @@ in
|
|||
bat
|
||||
micro
|
||||
tldr
|
||||
dust
|
||||
zoxide
|
||||
];
|
||||
|
||||
# Fix duplicate brave entry in gnome apps
|
||||
|
|
@ -40,11 +38,11 @@ in
|
|||
"org.prismlauncher.PrismLauncher" = {
|
||||
name = "Prism Launcher";
|
||||
exec = "prismlauncher -d /storage/Jeux/PrismLauncher-8.4 %U";
|
||||
comment="Discover, manage, and play Minecraft instances";
|
||||
type="Application";
|
||||
terminal=false;
|
||||
startupNotify=true;
|
||||
icon="org.prismlauncher.PrismLauncher";
|
||||
comment = "Discover, manage, and play Minecraft instances";
|
||||
type = "Application";
|
||||
terminal = false;
|
||||
startupNotify = true;
|
||||
icon = "org.prismlauncher.PrismLauncher";
|
||||
};
|
||||
};
|
||||
|
||||
|
|
@ -87,10 +85,7 @@ in
|
|||
|
||||
programs.nushell = {
|
||||
enable = true;
|
||||
extraConfig = ''
|
||||
$env.config.buffer_editor = "micro"
|
||||
$env.config.show_banner = false
|
||||
'';
|
||||
extraConfig = builtins.readFile ./env.nu;
|
||||
};
|
||||
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue