mirror of
https://github.com/Jokiller230/puzzlevision.git
synced 2025-11-02 14:48:49 +00:00
Compare commits
No commits in common. "5266d697de80502a98aca824dd8b8ed4a7dbbb9c" and "124d6b7edebe4ba098b366b41d7d75404dc7f683" have entirely different histories.
5266d697de
...
124d6b7ede
4 changed files with 71 additions and 161 deletions
30
flake.lock
generated
30
flake.lock
generated
|
|
@ -115,11 +115,11 @@
|
||||||
"zig": "zig"
|
"zig": "zig"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1738619868,
|
"lastModified": 1738275804,
|
||||||
"narHash": "sha256-q4h4SY1kVkZG4t/59CmJvaKjlx+xjojhdU1HqxiQhrQ=",
|
"narHash": "sha256-n9cSCLlWjc8Bc5QyZYLo5+c6MfTZjgDpUGx/FGxBiY8=",
|
||||||
"owner": "ghostty-org",
|
"owner": "ghostty-org",
|
||||||
"repo": "ghostty",
|
"repo": "ghostty",
|
||||||
"rev": "f0d276062b78658fc1f3857e9ea104788f1f4e58",
|
"rev": "c5508e7d1922842ecd3160ea73b97da1282168b3",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
@ -130,11 +130,11 @@
|
||||||
},
|
},
|
||||||
"hardware": {
|
"hardware": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1738638143,
|
"lastModified": 1737751639,
|
||||||
"narHash": "sha256-ZYMe4c4OCtIUBn5hx15PEGr0+B1cNEpl2dsaLxwY2W0=",
|
"narHash": "sha256-ZEbOJ9iT72iwqXsiEMbEa8wWjyFvRA9Ugx8utmYbpz4=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixos-hardware",
|
"repo": "nixos-hardware",
|
||||||
"rev": "9bdd53f5908453e4d03f395eb1615c3e9a351f70",
|
"rev": "dfad538f751a5aa5d4436d9781ab27a6128ec9d4",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
@ -151,11 +151,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1738667255,
|
"lastModified": 1738275749,
|
||||||
"narHash": "sha256-sMMQb9NydZqQ/MvvtPp+Ny0W9P0Jk0moU7SrTBlO5Vo=",
|
"narHash": "sha256-PM+cGduJ05EZ+YXulqAwUFjvfKpPmW080mcuN6R1POw=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "7abcf59a365430b36f84eaa452a466b11e469e33",
|
"rev": "a8159195bfaef3c64df75d3b1e6a68d49d392be9",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
@ -182,11 +182,11 @@
|
||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1738644632,
|
"lastModified": 1738136902,
|
||||||
"narHash": "sha256-DyvJjOOGmTSkkEfHq0oWkwtZOgejYIB5S865wmf/qos=",
|
"narHash": "sha256-pUvLijVGARw4u793APze3j6mU1Zwdtz7hGkGGkD87qw=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "95ea544c84ebed84a31896b0ecea2570e5e0e236",
|
"rev": "9a5db3142ce450045840cc8d832b13b8a2018e0c",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
@ -269,11 +269,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1738291974,
|
"lastModified": 1737411508,
|
||||||
"narHash": "sha256-wkwYJc8cKmmQWUloyS9KwttBnja2ONRuJQDEsmef320=",
|
"narHash": "sha256-j9IdflJwRtqo9WpM0OfAZml47eBblUHGNQTe62OUqTw=",
|
||||||
"owner": "Mic92",
|
"owner": "Mic92",
|
||||||
"repo": "sops-nix",
|
"repo": "sops-nix",
|
||||||
"rev": "4c1251904d8a08c86ac6bc0d72cc09975e89aef7",
|
"rev": "015d461c16678fc02a2f405eb453abb509d4e1d4",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
|
||||||
|
|
@ -7,9 +7,6 @@
|
||||||
themes.catppuccin = {
|
themes.catppuccin = {
|
||||||
gtk.enable = true;
|
gtk.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
apps.nushell.enable = true;
|
|
||||||
apps.vscodium.enable = true;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
home.file."~/.config/Yubico/u2f_keys".text = ''
|
home.file."~/.config/Yubico/u2f_keys".text = ''
|
||||||
|
|
@ -25,6 +22,60 @@
|
||||||
packages = [];
|
packages = [];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
programs = {
|
||||||
|
nushell = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
# for editing directly to config.nu
|
||||||
|
extraConfig = ''
|
||||||
|
let carapace_completer = {|spans|
|
||||||
|
carapace $spans.0 nushell $spans | from json
|
||||||
|
}
|
||||||
|
$env.config = {
|
||||||
|
show_banner: false,
|
||||||
|
completions: {
|
||||||
|
case_sensitive: false # case-sensitive completions
|
||||||
|
quick: true # set to false to prevent auto-selecting completions
|
||||||
|
partial: true # set to false to prevent partial filling of the prompt
|
||||||
|
algorithm: "fuzzy" # prefix or fuzzy
|
||||||
|
external: {
|
||||||
|
# set to false to prevent nushell looking into $env.PATH to find more suggestions
|
||||||
|
enable: true
|
||||||
|
# set to lower can improve completion performance at the cost of omitting some options
|
||||||
|
max_results: 100
|
||||||
|
completer: $carapace_completer # check 'carapace_completer'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
$env.PATH = ($env.PATH |
|
||||||
|
split row (char esep) |
|
||||||
|
prepend /home/myuser/.apps |
|
||||||
|
append /usr/bin/env
|
||||||
|
)
|
||||||
|
'';
|
||||||
|
|
||||||
|
shellAliases = {
|
||||||
|
vi = "hx";
|
||||||
|
vim = "hx";
|
||||||
|
nano = "hx";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
carapace.enable = true;
|
||||||
|
carapace.enableNushellIntegration = true;
|
||||||
|
|
||||||
|
starship = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
add_newline = true;
|
||||||
|
character = {
|
||||||
|
success_symbol = "[➜](bold green)";
|
||||||
|
error_symbol = "[➜](bold red)";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
# TODO: look at git-sync for syncing stuff like obsidian vaults.
|
# TODO: look at git-sync for syncing stuff like obsidian vaults.
|
||||||
programs.git-credential-oauth.enable = true;
|
programs.git-credential-oauth.enable = true;
|
||||||
|
|
||||||
|
|
@ -51,6 +102,8 @@
|
||||||
devenv
|
devenv
|
||||||
python39
|
python39
|
||||||
nixd
|
nixd
|
||||||
|
nil
|
||||||
|
zed-editor
|
||||||
bruno
|
bruno
|
||||||
deno
|
deno
|
||||||
carapace
|
carapace
|
||||||
|
|
|
||||||
|
|
@ -1,74 +0,0 @@
|
||||||
{
|
|
||||||
lib,
|
|
||||||
pkgs,
|
|
||||||
config,
|
|
||||||
namespace,
|
|
||||||
...
|
|
||||||
}: let
|
|
||||||
inherit (lib) mkEnableOption mkIf;
|
|
||||||
cfg = config.${namespace}.apps.vscodium;
|
|
||||||
in {
|
|
||||||
options.${namespace}.apps.vscodium = {
|
|
||||||
enable = mkEnableOption "vscodium";
|
|
||||||
};
|
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
|
||||||
home.packages = with pkgs; [
|
|
||||||
alejandra
|
|
||||||
];
|
|
||||||
|
|
||||||
programs.vscode = {
|
|
||||||
enable = true;
|
|
||||||
package = pkgs.vscodium;
|
|
||||||
|
|
||||||
enableUpdateCheck = false;
|
|
||||||
enableExtensionUpdateCheck = false;
|
|
||||||
mutableExtensionsDir = false;
|
|
||||||
|
|
||||||
extensions = with pkgs; [
|
|
||||||
### Theming
|
|
||||||
vscode-extensions.pkief.material-icon-theme
|
|
||||||
vscode-extensions.catppuccin.catppuccin-vsc
|
|
||||||
|
|
||||||
### General
|
|
||||||
vscode-extensions.usernamehw.errorlens
|
|
||||||
vscode-extensions.leonardssh.vscord
|
|
||||||
vscode-extensions.davidlday.languagetool-linter
|
|
||||||
vscode-extensions.christian-kohler.path-intellisense
|
|
||||||
vscode-extensions.wakatime.vscode-wakatime
|
|
||||||
|
|
||||||
### Language specific
|
|
||||||
# Nushell
|
|
||||||
vscode-extensions.thenuprojectcontributors.vscode-nushell-lang
|
|
||||||
|
|
||||||
# Nix
|
|
||||||
vscode-extensions.kamadorueda.alejandra
|
|
||||||
vscode-extensions.jnoortheen.nix-ide
|
|
||||||
|
|
||||||
# Env
|
|
||||||
vscode-extensions.irongeek.vscode-env
|
|
||||||
|
|
||||||
# Deno (JavaScript)
|
|
||||||
vscode-extensions.denoland.vscode-deno
|
|
||||||
];
|
|
||||||
|
|
||||||
userSettings = {
|
|
||||||
"files.autoSave" = "on";
|
|
||||||
"workbench.colorTheme" = "Catppuccin Macchiato";
|
|
||||||
|
|
||||||
"[nix]" = {
|
|
||||||
"editor.tabSize" = 2;
|
|
||||||
"formatterPath" = "alejandra";
|
|
||||||
|
|
||||||
"enableLanguageServer" = true;
|
|
||||||
"serverPath" = "nixd";
|
|
||||||
"serverSettings" = {
|
|
||||||
"nixd" = {
|
|
||||||
"formatting.command" = ["alejandra"];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
@ -1,69 +0,0 @@
|
||||||
{
|
|
||||||
lib,
|
|
||||||
pkgs,
|
|
||||||
config,
|
|
||||||
namespace,
|
|
||||||
...
|
|
||||||
}: let
|
|
||||||
inherit (lib) mkEnableOption mkIf;
|
|
||||||
cfg = config.${namespace}.apps.nushell;
|
|
||||||
in {
|
|
||||||
options.${namespace}.apps.nushell = {
|
|
||||||
enable = mkEnableOption "Whether to enable nushell customization.";
|
|
||||||
};
|
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
|
||||||
programs = {
|
|
||||||
nushell = {
|
|
||||||
enable = true;
|
|
||||||
|
|
||||||
extraConfig = ''
|
|
||||||
let carapace_completer = {|spans|
|
|
||||||
carapace $spans.0 nushell ...$spans | from json
|
|
||||||
}
|
|
||||||
|
|
||||||
$env.config = {
|
|
||||||
completions: {
|
|
||||||
case_sensitive: false # case-sensitive completions
|
|
||||||
quick: true # auto complete selections
|
|
||||||
partial: true # partial filling of prompts
|
|
||||||
algorithm: "fuzzy" # prefix or fuzzy
|
|
||||||
external: {
|
|
||||||
# discover completions using $env.PATH
|
|
||||||
enable: true
|
|
||||||
# lowering can improve completion performance at the cost of omitting some options
|
|
||||||
max_results: 200
|
|
||||||
completer: $carapace_completer # check 'carapace_completer'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
$env.PATH = ($env.PATH |
|
|
||||||
split row (char esep) |
|
|
||||||
prepend /run/wrappers/bin |
|
|
||||||
prepend /home/jo/.nix-profile/bin |
|
|
||||||
append /usr/bin/env/run/wrappers/bin
|
|
||||||
)
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
|
|
||||||
carapace.enable = true;
|
|
||||||
carapace.enableNushellIntegration = true;
|
|
||||||
|
|
||||||
starship = {
|
|
||||||
enable = true;
|
|
||||||
settings = {
|
|
||||||
add_newline = true;
|
|
||||||
character = {
|
|
||||||
success_symbol = "[➜](bold green)";
|
|
||||||
error_symbol = "[➜](bold red)";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
|
||||||
carapace
|
|
||||||
];
|
|
||||||
};
|
|
||||||
}
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue