Fix dev-lt-63 env
This commit is contained in:
parent
08a62cf353
commit
20a6996fbe
10 changed files with 86 additions and 32 deletions
|
@ -16,11 +16,49 @@ in with lib; {
|
|||
config = {
|
||||
|
||||
# Configure the shell itself
|
||||
programs.bash = {
|
||||
programs.bash = with pkgs; {
|
||||
enable = true;
|
||||
historyIgnore = [
|
||||
"poweroff"
|
||||
"reboot"
|
||||
"exit"
|
||||
"exa"
|
||||
"fg"
|
||||
"cd"
|
||||
"ls"
|
||||
"z"
|
||||
];
|
||||
historyControl = [
|
||||
"ignorespace"
|
||||
"ignoredups"
|
||||
];
|
||||
historySize = 100000;
|
||||
sessionVariables = {
|
||||
"EDITOR" = "${helix}/bin/hx";
|
||||
};
|
||||
shellAliases = {
|
||||
# General aliases
|
||||
":q" = "exit";
|
||||
"t" = "exa -T";
|
||||
"t" = "${exa}/bin/exa -T";
|
||||
".." = "cd ..";
|
||||
|
||||
# Git command aliases
|
||||
"rebase" = "git rebase -i --autosquash --committer-date-is-author-date";
|
||||
"uncommit" = "git reset --soft HEAD~";
|
||||
|
||||
# Git selectors
|
||||
".changed" = "git diff --name-only";
|
||||
".conflicted" = "git status --porcelain | rg '^UU' | sd '^.. ' ''";
|
||||
".branches" = "git branch -a | rg -v '\*|HEAD' | sd 'remotes/origin/' '' | sd '^ *' '' | uniq";
|
||||
|
||||
# File extension selectors
|
||||
".hs" = "${fd}/bin/fd -e hs";
|
||||
".nix" = "${fd}/bin/fd -e nix";
|
||||
".py" = "${fd}/bin/fd -e py";
|
||||
".rs" = "${fd}/bin/fd -e rs";
|
||||
".sh" = "${fd}/bin/fd -e sh";
|
||||
".yaml" = "${fd}/bin/fd -e yaml -e yml";
|
||||
".yml" = ".yaml";
|
||||
} // cfg.extraAliases;
|
||||
};
|
||||
|
||||
|
|
|
@ -5,11 +5,11 @@
|
|||
imports = [
|
||||
./bash.nix
|
||||
./git.nix
|
||||
./nix.nix
|
||||
./mpd.nix
|
||||
./programs.nix
|
||||
./theme.nix
|
||||
./gui
|
||||
./nix
|
||||
];
|
||||
|
||||
options.isNixos = lib.mkOption {
|
||||
|
@ -17,6 +17,8 @@
|
|||
default = false;
|
||||
};
|
||||
|
||||
config.theme = import ../../themes/lean.nix;
|
||||
config = {
|
||||
theme = import ../../themes/lean.nix;
|
||||
};
|
||||
|
||||
}
|
|
@ -31,6 +31,8 @@ in with lib; {
|
|||
config = mkIf (cfg.enable) {
|
||||
|
||||
home.packages = with pkgs; [
|
||||
kitty
|
||||
swaylock
|
||||
wl-clipboard
|
||||
(writeScriptBin "c" ''
|
||||
${wl-clipboard}/bin/wl-copy
|
||||
|
@ -40,9 +42,9 @@ in with lib; {
|
|||
'')
|
||||
];
|
||||
|
||||
programs.swaylock.enable = true;
|
||||
# programs.swaylock.enable = true;
|
||||
# services.swayidle.enable = true;
|
||||
programs.waybar.enable = true;
|
||||
services.swayidle.enable = true;
|
||||
|
||||
wayland.windowManager.sway = {
|
||||
# This is all required to get it to not die.
|
||||
|
@ -54,7 +56,7 @@ in with lib; {
|
|||
output."*".bg = "${../../data/wallpaper.jpg} fill";
|
||||
input."type:keyboard".xkb_options = "caps:escape";
|
||||
|
||||
terminal = "${pkgs.kitty}/bin/kitty";
|
||||
terminal = "kitty --single-instance";
|
||||
|
||||
# Directional keys
|
||||
modifier = mod;
|
||||
|
@ -83,9 +85,11 @@ in with lib; {
|
|||
"${mod}+Alt+a" = "layout toggle stacking splitv";
|
||||
"${mod}+Alt+s" = "layout toggle tabbed splith";
|
||||
|
||||
"${mod}+q" = "exec ${pkgs.foot}/bin/foot";
|
||||
"${mod}+Return" = "exec ${terminal}";
|
||||
"${mod}+Escape" = "exec ${pkgs.swaylock}/bin/swaylock";
|
||||
"${mod}+Escape" = "exec swaylock";
|
||||
"${mod}+Tab" = "exec ${pkgs.firefox}/bin/firefox";
|
||||
"${mod}+Alt+Tab" = "exec ${pkgs.google-chrome}/bin/google-chrome-stable";
|
||||
|
||||
"${mod}+Backspace" = "mode kill";
|
||||
}
|
||||
|
|
|
@ -16,7 +16,7 @@ let theme = config.theme; in {
|
|||
font = {
|
||||
name = "Fira Code";
|
||||
package = pkgs.fira-code;
|
||||
size = 8.5;
|
||||
size = 10.5;
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
@ -1,19 +0,0 @@
|
|||
{ lib, pkgs, config, ... }:
|
||||
|
||||
(lib.mkIf (!config.isNixos) {
|
||||
nix.package = pkgs.nix;
|
||||
}) // {
|
||||
|
||||
nix.settings = {
|
||||
experimental-features = [ "nix-command" "flakes" ];
|
||||
};
|
||||
|
||||
nixpkgs.config = {
|
||||
allowUnfree = true;
|
||||
};
|
||||
|
||||
nixpkgs.overlays = [
|
||||
(import ../overlay.nix)
|
||||
];
|
||||
|
||||
}
|
20
shared/home/nix/default.nix
Normal file
20
shared/home/nix/default.nix
Normal file
|
@ -0,0 +1,20 @@
|
|||
{ lib, pkgs, config, ... }:
|
||||
|
||||
(lib.mkIf (!config.isNixos) {
|
||||
|
||||
nix = {
|
||||
enable = true;
|
||||
package = pkgs.nix;
|
||||
settings = {
|
||||
experimental-features = [ "nix-command" "flakes" ];
|
||||
};
|
||||
};
|
||||
|
||||
nixpkgs.config = import ./nix-config.nix;
|
||||
nixpkgs.overlays = [
|
||||
(import ../../overlay.nix)
|
||||
];
|
||||
|
||||
xdg.configFile."nixpkgs/config.nix".source = ./nix-config.nix;
|
||||
|
||||
})
|
3
shared/home/nix/nix-config.nix
Normal file
3
shared/home/nix/nix-config.nix
Normal file
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
allowUnfree = true;
|
||||
}
|
|
@ -5,7 +5,11 @@
|
|||
|
||||
{ pkgs, ... }: {
|
||||
|
||||
home.packages = (import ../env.nix pkgs);
|
||||
home.packages = (with pkgs; [
|
||||
eva
|
||||
hyperfine
|
||||
du-dust
|
||||
]) ++ (import ../env.nix pkgs);
|
||||
|
||||
# CLI for accessing my passwords
|
||||
programs.rbw = {
|
||||
|
|
|
@ -11,6 +11,8 @@
|
|||
home-manager.enable = false;
|
||||
};
|
||||
|
||||
custom.gui.sway.enable = true;
|
||||
|
||||
xdg.systemDirs.data = [ "/usr/share" "/usr/local/share" ];
|
||||
fonts.fontconfig.enable = true;
|
||||
|
||||
|
|
Loading…
Reference in a new issue