mirror of
https://codeberg.org/muon/home.git
synced 2025-12-06 08:07:45 +00:00
Update nix
This commit is contained in:
parent
7597c9eb6c
commit
e4451da88d
7 changed files with 28 additions and 37 deletions
|
|
@ -54,7 +54,7 @@
|
|||
|
||||
languages.language-server = {
|
||||
glsl.command = "${pkgs.glsl_analyzer}/bin/glsl_analyzer";
|
||||
wgsl.command = "${pkgs.wgsl-analyzer}/bin/wgsl_analyzer";
|
||||
wgsl.command = "${pkgs.wgsl-analyzer}/bin/wgsl-analyzer";
|
||||
};
|
||||
|
||||
languages.language = [
|
||||
|
|
|
|||
|
|
@ -2,14 +2,10 @@
|
|||
let
|
||||
cfg = config.mods.terminal;
|
||||
|
||||
aliases = {
|
||||
la = "ls -lah";
|
||||
};
|
||||
aliases = { la = "ls -lah"; };
|
||||
|
||||
in {
|
||||
options.mods.terminal = {
|
||||
zsh.enable = lib.mkEnableOption "enables zsh";
|
||||
};
|
||||
options.mods.terminal = { zsh.enable = lib.mkEnableOption "enables zsh"; };
|
||||
|
||||
config = {
|
||||
programs.starship.enable = true;
|
||||
|
|
@ -29,20 +25,18 @@ in {
|
|||
path = "${config.xdg.dataHome}/zsh/history";
|
||||
};
|
||||
|
||||
initExtra = ''
|
||||
initContent = ''
|
||||
autoload -U compinit
|
||||
setopt no_auto_remove_slash
|
||||
'';
|
||||
|
||||
shellAliases = aliases;
|
||||
|
||||
plugins = with pkgs; [
|
||||
{
|
||||
name = "zsh-vi-mode";
|
||||
src = zsh-vi-mode;
|
||||
file = "share/zsh-vi-mode/zsh-vi-mode.plugin.zsh";
|
||||
}
|
||||
];
|
||||
plugins = with pkgs; [{
|
||||
name = "zsh-vi-mode";
|
||||
src = zsh-vi-mode;
|
||||
file = "share/zsh-vi-mode/zsh-vi-mode.plugin.zsh";
|
||||
}];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,19 +1,16 @@
|
|||
{ pkgs, lib, config, inputs, system, ... }: let
|
||||
cfg = config.mods;
|
||||
{ pkgs, lib, config, inputs, system, sources, ... }:
|
||||
let cfg = config.mods;
|
||||
|
||||
in {
|
||||
options.mods.home.file = lib.mkOption {
|
||||
description = "home-manager configuration file";
|
||||
};
|
||||
options.mods.home.file =
|
||||
lib.mkOption { description = "home-manager configuration file"; };
|
||||
|
||||
config = {
|
||||
home-manager = {
|
||||
extraSpecialArgs = { inherit system pkgs inputs; };
|
||||
extraSpecialArgs = { inherit system pkgs inputs sources; };
|
||||
users."${cfg.user.name}" = {
|
||||
imports = [
|
||||
cfg.home.file
|
||||
inputs.self.outputs.homeManagerModules.default
|
||||
];
|
||||
imports =
|
||||
[ cfg.home.file inputs.self.outputs.homeManagerModules.default ];
|
||||
};
|
||||
backupFileExtension = "bak";
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue