refactor
This commit is contained in:
parent
531b178421
commit
ed9a836d2d
9 changed files with 43 additions and 52 deletions
|
@ -1,15 +1,22 @@
|
||||||
{pkgs, ...}: {
|
{
|
||||||
|
inputs,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
imports = [
|
imports = [
|
||||||
./git.nix
|
./git.nix
|
||||||
./mpd.nix
|
./mpd.nix
|
||||||
./nvim.nix
|
|
||||||
./remarkable.nix
|
|
||||||
./ssh.nix
|
./ssh.nix
|
||||||
./zsh.nix
|
|
||||||
];
|
];
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs;
|
||||||
pulsemixer
|
[
|
||||||
unstable.qmk
|
mum
|
||||||
];
|
pulsemixer
|
||||||
|
unstable.qmk
|
||||||
|
unstable.rmapi
|
||||||
|
]
|
||||||
|
++ [
|
||||||
|
inputs.remarks.packages.${pkgs.system}.default
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,18 +0,0 @@
|
||||||
{
|
|
||||||
inputs,
|
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}: {
|
|
||||||
home.packages = [
|
|
||||||
# Toolchain
|
|
||||||
pkgs.direnv
|
|
||||||
pkgs.gcc
|
|
||||||
pkgs.pandoc
|
|
||||||
pkgs.python313Full
|
|
||||||
pkgs.texliveFull
|
|
||||||
|
|
||||||
|
|
||||||
# Install our nixvim configuration for neovim.
|
|
||||||
inputs.nixvim.packages.${pkgs.system}.default
|
|
||||||
];
|
|
||||||
}
|
|
|
@ -1,13 +0,0 @@
|
||||||
{
|
|
||||||
pkgs,
|
|
||||||
inputs,
|
|
||||||
...
|
|
||||||
}: {
|
|
||||||
# This module is for the ReMarkable tablet, which is a Linux-based e-reader
|
|
||||||
home.packages = [
|
|
||||||
# Allows access to the ReMarkable Cloud API
|
|
||||||
pkgs.unstable.rmapi
|
|
||||||
# Converts ReMarkable files to PDF
|
|
||||||
inputs.remarks.packages.${pkgs.system}.default
|
|
||||||
];
|
|
||||||
}
|
|
16
home-manager/sajenim/features/editor/default.nix
Normal file
16
home-manager/sajenim/features/editor/default.nix
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
{
|
||||||
|
inputs,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
home.packages = with pkgs;
|
||||||
|
[
|
||||||
|
gcc
|
||||||
|
pandoc
|
||||||
|
python313Full
|
||||||
|
texliveFull
|
||||||
|
]
|
||||||
|
++ [
|
||||||
|
inputs.nixvim.packages.${pkgs.system}.default
|
||||||
|
];
|
||||||
|
}
|
|
@ -1,7 +1,9 @@
|
||||||
{...}: {
|
{...}: {
|
||||||
imports = [
|
imports = [
|
||||||
./global
|
./global
|
||||||
|
./features/cli
|
||||||
./features/desktop
|
./features/desktop
|
||||||
|
./features/editor
|
||||||
./features/games
|
./features/games
|
||||||
./features/printing
|
./features/printing
|
||||||
./features/university
|
./features/university
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{outputs, ...}: {
|
{outputs, ...}: {
|
||||||
imports = [
|
imports = [
|
||||||
../features/cli
|
./zsh.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
nixpkgs = {
|
nixpkgs = {
|
||||||
|
|
|
@ -14,16 +14,18 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
enableCompletion = true;
|
enableCompletion = true;
|
||||||
|
|
||||||
|
# Configuration directory
|
||||||
dotDir = ".config/zsh";
|
dotDir = ".config/zsh";
|
||||||
|
|
||||||
# Aliases
|
|
||||||
shellAliases = {
|
shellAliases = {
|
||||||
|
# Single letter aliases
|
||||||
c = "clear";
|
c = "clear";
|
||||||
|
v = "nvim";
|
||||||
|
|
||||||
|
# Double letter aliases
|
||||||
la = "ls -a";
|
la = "ls -a";
|
||||||
ll = "ls -l";
|
ll = "ls -l";
|
||||||
tt = "wezterm cli set-tab-title ";
|
|
||||||
mount-backup = "sshfs viridian:/srv/shares/sajenim /home/sajenim/.backup";
|
|
||||||
mount-turing = "sshfs turing:/home/jwils254 /home/sajenim/.turing";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
# Install plugins
|
# Install plugins
|
||||||
|
@ -43,7 +45,6 @@
|
||||||
initContent = ''
|
initContent = ''
|
||||||
eval "$(direnv hook zsh)"
|
eval "$(direnv hook zsh)"
|
||||||
source ${pkgs.zsh-vi-mode}/share/zsh-vi-mode/zsh-vi-mode.plugin.zsh
|
source ${pkgs.zsh-vi-mode}/share/zsh-vi-mode/zsh-vi-mode.plugin.zsh
|
||||||
path+=('/home/sajenim/.repositories/sysadmin.sh/bin')
|
|
||||||
bindkey "^[[1;5C" forward-word
|
bindkey "^[[1;5C" forward-word
|
||||||
bindkey "^[[1;5D" backward-word
|
bindkey "^[[1;5D" backward-word
|
||||||
export PATH
|
export PATH
|
|
@ -33,12 +33,6 @@
|
||||||
adb.enable = true;
|
adb.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
# Manage linux containers
|
|
||||||
virtualisation.docker = {
|
|
||||||
enable = true;
|
|
||||||
liveRestore = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
|
# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
|
||||||
system.stateVersion = "24.05";
|
system.stateVersion = "24.05";
|
||||||
}
|
}
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
80 # http
|
80 # http
|
||||||
443 # https
|
443 # https
|
||||||
6600 # mpd
|
6600 # mpd
|
||||||
6667 # inspircd
|
6697 # inspircd
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -35,6 +35,8 @@
|
||||||
# Configure programs
|
# Configure programs
|
||||||
programs = {
|
programs = {
|
||||||
zsh.enable = true;
|
zsh.enable = true;
|
||||||
|
# Load and unload environment variables
|
||||||
|
direnv.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
# Manage linux containers
|
# Manage linux containers
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue