02-15-25 update
This commit is contained in:
4
flake.lock
generated
4
flake.lock
generated
@@ -932,13 +932,13 @@
|
|||||||
"lastModified": 1739483770,
|
"lastModified": 1739483770,
|
||||||
"narHash": "sha256-AGItl4LN8hWqcNmE6d9snIkaV/FZKKD58e2pf7A22UA=",
|
"narHash": "sha256-AGItl4LN8hWqcNmE6d9snIkaV/FZKKD58e2pf7A22UA=",
|
||||||
"owner": "pagedMov",
|
"owner": "pagedMov",
|
||||||
"repo": "lash",
|
"repo": "slash",
|
||||||
"rev": "5c038fbb569fdad802f22fa0bd5ca9a839dcaed8",
|
"rev": "5c038fbb569fdad802f22fa0bd5ca9a839dcaed8",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "pagedMov",
|
"owner": "pagedMov",
|
||||||
"repo": "lash",
|
"repo": "slash",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -30,14 +30,14 @@
|
|||||||
url = "github:gerg-l/spicetify-nix";
|
url = "github:gerg-l/spicetify-nix";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
lash_flake.url = "github:pagedMov/lash";
|
lash_flake.url = "github:pagedMov/slash";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { self, home-manager, disko, lash_flake, nixpkgs, impermanence, nixvim, stylix, ... }@inputs:
|
outputs = { self, home-manager, disko, lash_flake, nixpkgs, impermanence, nixvim, stylix, ... }@inputs:
|
||||||
let
|
let
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
username = "pagedmov";
|
username = "pagedmov";
|
||||||
lash = lash_flake.packages.${system}.default;
|
slash = lash_flake.packages.${system}.default;
|
||||||
nixpkgsConfig = {
|
nixpkgsConfig = {
|
||||||
allowUnfree = true;
|
allowUnfree = true;
|
||||||
};
|
};
|
||||||
@@ -143,7 +143,7 @@
|
|||||||
nixosConfigurations = {
|
nixosConfigurations = {
|
||||||
oganesson = nixpkgs.lib.nixosSystem { # Desktop
|
oganesson = nixpkgs.lib.nixosSystem { # Desktop
|
||||||
specialArgs = {
|
specialArgs = {
|
||||||
inherit self inputs username lash;
|
inherit self inputs username slash;
|
||||||
host = "oganesson";
|
host = "oganesson";
|
||||||
overlays = [
|
overlays = [
|
||||||
(import ./overlay/overlay.nix { root = self; })
|
(import ./overlay/overlay.nix { root = self; })
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ lash, pkgs, username, ... }:
|
{ slash, pkgs, username, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [ ./hardware.nix ];
|
imports = [ ./hardware.nix ];
|
||||||
@@ -28,7 +28,7 @@
|
|||||||
|
|
||||||
environment = {
|
environment = {
|
||||||
variables = { PATH = "${pkgs.clang-tools}/bin:$PATH"; };
|
variables = { PATH = "${pkgs.clang-tools}/bin:$PATH"; };
|
||||||
shells = [ pkgs.myPkgs.lash pkgs.zsh pkgs.bash ];
|
shells = [ pkgs.myPkgs.slash pkgs.zsh pkgs.bash ];
|
||||||
};
|
};
|
||||||
|
|
||||||
users = {
|
users = {
|
||||||
@@ -38,7 +38,7 @@
|
|||||||
${username} = {
|
${username} = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
initialPassword = "1234";
|
initialPassword = "1234";
|
||||||
shell = pkgs.myPkgs.lash;
|
shell = pkgs.zsh;
|
||||||
extraGroups = [ "input" "wheel" "persist" "libvirtd" ];
|
extraGroups = [ "input" "wheel" "persist" "libvirtd" ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
"($ssh_symbol)($username)($hostname)($nix_shell)(bold white)($cmd_duration)($character)"
|
"($ssh_symbol)($username)($hostname)($nix_shell)(bold white)($cmd_duration)($character)"
|
||||||
"($git_branch)($git_status)($rust)"
|
"($git_branch)($git_status)($rust)"
|
||||||
"($directory)"
|
"($directory)"
|
||||||
"$line_break[ > ](bold #89b4fa)"
|
"$line_break[ ](bold #89b4fa)"
|
||||||
];
|
];
|
||||||
|
|
||||||
username = {
|
username = {
|
||||||
@@ -42,7 +42,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
cmd_duration = {
|
cmd_duration = {
|
||||||
format = "[ $duration]($style)";
|
format = "[ $duration]($style)";
|
||||||
disabled = false;
|
disabled = false;
|
||||||
style = "bg:none fg:#f9e2af";
|
style = "bg:none fg:#f9e2af";
|
||||||
show_notifications = false;
|
show_notifications = false;
|
||||||
|
|||||||
@@ -16,6 +16,8 @@
|
|||||||
FLAKEPATH = "$HOME/.sysflake";
|
FLAKEPATH = "$HOME/.sysflake";
|
||||||
STEAMPATH = "$HOME/.local/share/Steam";
|
STEAMPATH = "$HOME/.local/share/Steam";
|
||||||
PATH = "$PATH:$HOME/.userpath/";
|
PATH = "$PATH:$HOME/.userpath/";
|
||||||
|
FZF_DEFAULT_COMMAND = "fd";
|
||||||
|
FZF_DEFAULT_OPTS = "--height 40% --layout=reverse --border";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
let
|
let
|
||||||
shellsound = "${pkgs.myScripts.playshellsound}/bin/playshellsound";
|
shellsound = "${pkgs.myScripts.playshellsound}/bin/playshellsound";
|
||||||
color-commit = "${pkgs.myScripts.color-commit}/bin/color-commit";
|
color-commit = "${pkgs.myScripts.color-commit}/bin/color-commit";
|
||||||
|
fzf-tab = "${pkgs.myPkgs.fzf-tab}";
|
||||||
sndpath = "${self}/assets/sound";
|
sndpath = "${self}/assets/sound";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
@@ -174,6 +175,9 @@ in
|
|||||||
autoload -U up-line-or-beginning-search; zle -N up-line-or-beginning-search
|
autoload -U up-line-or-beginning-search; zle -N up-line-or-beginning-search
|
||||||
autoload -U down-line-or-beginning-search; zle -N down-line-or-beginning-search
|
autoload -U down-line-or-beginning-search; zle -N down-line-or-beginning-search
|
||||||
|
|
||||||
|
compinit
|
||||||
|
source ${fzf-tab}/fzf-tab.plugin.zsh
|
||||||
|
|
||||||
bindkey -v
|
bindkey -v
|
||||||
kitty_theme
|
kitty_theme
|
||||||
type starship_zle-keymap-select >/dev/null || \
|
type starship_zle-keymap-select >/dev/null || \
|
||||||
|
|||||||
@@ -18,7 +18,13 @@
|
|||||||
|
|
||||||
oh-my-zsh = {
|
oh-my-zsh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
plugins = [ "git" "fzf" ];
|
plugins = [
|
||||||
|
"git"
|
||||||
|
"fzf"
|
||||||
|
"aliases"
|
||||||
|
"command-not-found"
|
||||||
|
"eza"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
enableCompletion = true;
|
enableCompletion = true;
|
||||||
|
|||||||
@@ -20,7 +20,8 @@ in
|
|||||||
});
|
});
|
||||||
myPkgs = {
|
myPkgs = {
|
||||||
# Packages that I've made
|
# Packages that I've made
|
||||||
lash = super.callPackage ./pkgs/lash/package.nix {};
|
slash = super.callPackage ./pkgs/slash/package.nix {};
|
||||||
|
fzf-tab = super.callPackage ./pkgs/zsh-fzf-tab/package.nix {};
|
||||||
};
|
};
|
||||||
myScripts = {
|
myScripts = {
|
||||||
# Scripts written using pkgs.writeShellApplication
|
# Scripts written using pkgs.writeShellApplication
|
||||||
|
|||||||
@@ -1,29 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
export GIT_SSH_COMMAND="ssh -F /dev/null"
|
|
||||||
|
|
||||||
curl -O https://raw.githubusercontent.com/pagedMov/lash/refs/heads/master/Cargo.lock
|
|
||||||
NEW_SRC=$(fetchfromgh pagedMov/lash)
|
|
||||||
|
|
||||||
REV_SHORT=$(git ls-remote git@github.com:pagedMov/lash.git HEAD | awk '{print substr($1, 1, 7)}')
|
|
||||||
CUR_TAG=$(git ls-remote --tags git@github.com:pagedMov/lash.git | tail -n 2 | head -n 1 | cut -f2 | cut -d'/' -f3)
|
|
||||||
NEW_VER="${CUR_TAG}_$REV_SHORT"
|
|
||||||
|
|
||||||
cat <<EOF
|
|
||||||
{ pkgs ? import <nixpkgs> {} }:
|
|
||||||
|
|
||||||
pkgs.rustPlatform.buildRustPackage rec {
|
|
||||||
pname = "lash";
|
|
||||||
version = "$NEW_VER";
|
|
||||||
|
|
||||||
$NEW_SRC
|
|
||||||
|
|
||||||
doCheck = false; # TODO: Find a way to make tests work
|
|
||||||
|
|
||||||
cargoLock.lockFile = ./Cargo.lock;
|
|
||||||
|
|
||||||
passthru = {
|
|
||||||
shellPath = "/bin/lash";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
EOF
|
|
||||||
@@ -847,7 +847,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
|||||||
checksum = "a91d884b6667cd606bb5a69aa0c99ba811a115fc68915e7056ec08a46e93199a"
|
checksum = "a91d884b6667cd606bb5a69aa0c99ba811a115fc68915e7056ec08a46e93199a"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "lash"
|
name = "slash"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"bincode",
|
"bincode",
|
||||||
@@ -1,14 +1,14 @@
|
|||||||
{ pkgs ? import <nixpkgs> {} }:
|
{ pkgs ? import <nixpkgs> {} }:
|
||||||
|
|
||||||
pkgs.rustPlatform.buildRustPackage rec {
|
pkgs.rustPlatform.buildRustPackage rec {
|
||||||
pname = "lash";
|
pname = "slash";
|
||||||
version = "v0.5.0_5c038fb";
|
version = "v0.5.0_662cb43";
|
||||||
|
|
||||||
src = pkgs.fetchFromGitHub {
|
src = pkgs.fetchFromGitHub {
|
||||||
owner = "pagedMov";
|
owner = "pagedMov";
|
||||||
repo = "lash";
|
repo = "slash";
|
||||||
rev = "5c038fbb569fdad802f22fa0bd5ca9a839dcaed8";
|
rev = "662cb43e499d179579d99bf358073516605230ea";
|
||||||
hash = "sha256-AGItl4LN8hWqcNmE6d9snIkaV/FZKKD58e2pf7A22UA=";
|
hash = "sha256-4DKAhRkd1XeDNyYH8yL1TnbTc6hZnp2+UV7UYeDRkpE=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@@ -17,6 +17,6 @@ pkgs.rustPlatform.buildRustPackage rec {
|
|||||||
cargoLock.lockFile = ./Cargo.lock;
|
cargoLock.lockFile = ./Cargo.lock;
|
||||||
|
|
||||||
passthru = {
|
passthru = {
|
||||||
shellPath = "/bin/lash";
|
shellPath = "/bin/slash";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
29
overlay/pkgs/slash/update_slash.sh
Executable file
29
overlay/pkgs/slash/update_slash.sh
Executable file
@@ -0,0 +1,29 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
export GIT_SSH_COMMAND="ssh -F /dev/null"
|
||||||
|
|
||||||
|
curl -O https://raw.githubusercontent.com/pagedMov/slash/refs/heads/master/Cargo.lock
|
||||||
|
NEW_SRC=$(fetchfromgh pagedMov/slash)
|
||||||
|
|
||||||
|
REV_SHORT=$(git ls-remote git@github.com:pagedMov/slash.git HEAD | awk '{print substr($1, 1, 7)}')
|
||||||
|
CUR_TAG=$(git ls-remote --tags git@github.com:pagedMov/slash.git | tail -n 2 | head -n 1 | cut -f2 | cut -d'/' -f3)
|
||||||
|
NEW_VER="${CUR_TAG}_$REV_SHORT"
|
||||||
|
|
||||||
|
cat <<EOF
|
||||||
|
{ pkgs ? import <nixpkgs> {} }:
|
||||||
|
|
||||||
|
pkgs.rustPlatform.buildRustPackage rec {
|
||||||
|
pname = "slash";
|
||||||
|
version = "$NEW_VER";
|
||||||
|
|
||||||
|
$NEW_SRC
|
||||||
|
|
||||||
|
doCheck = false; # TODO: Find a way to make tests work
|
||||||
|
|
||||||
|
cargoLock.lockFile = ./Cargo.lock;
|
||||||
|
|
||||||
|
passthru = {
|
||||||
|
shellPath = "/bin/slash";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
EOF
|
||||||
16
overlay/pkgs/zsh-fzf-tab/package.nix
Normal file
16
overlay/pkgs/zsh-fzf-tab/package.nix
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
{ pkgs ? import <nixpkgs> { } }:
|
||||||
|
|
||||||
|
pkgs.stdenv.mkDerivation {
|
||||||
|
pname = "fzf-tab";
|
||||||
|
version = "v1.1.2";
|
||||||
|
src = pkgs.fetchFromGitHub {
|
||||||
|
owner = "Aloxaf";
|
||||||
|
repo = "fzf-tab";
|
||||||
|
rev = "6aced3f35def61c5edf9d790e945e8bb4fe7b305";
|
||||||
|
hash = "sha256-EWMeslDgs/DWVaDdI9oAS46hfZtp4LHTRY8TclKTNK8=";
|
||||||
|
};
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
cp -r $src $out
|
||||||
|
'';
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user