Added lots of things

This commit is contained in:
FredzyW 2024-05-02 10:37:04 +02:00
parent 176a36e120
commit 0c40e0f66d
9 changed files with 103 additions and 32 deletions

View file

@ -16,8 +16,18 @@
}; };
nix.registry = (lib.mapAttrs (_: flake: {inherit flake;})) ((lib.filterAttrs (_: lib.isType "flake")) inputs); nix.registry = (lib.mapAttrs (_: flake: {inherit flake;})) ((lib.filterAttrs (_: lib.isType "flake")) inputs);
nix.nixPath = ["/etc/nix/path"]; nix.nixPath = ["/etc/nix/path"];
programs.fish.enable = true;
programs.bash = {
interactiveShellInit = ''
if [[ $(${pkgs.procps}/bin/ps --no-header --pid=$PPID --format=comm) != "fish" && -z ''${BASH_EXECUTION_STRING} ]]
then
shopt -q login_shell && LOGIN_OPTION='--login' || LOGIN_OPTION=""
exec ${pkgs.fish}/bin/fish $LOGIN_OPTION
fi
'';
};
users.defaultUserShell = pkgs.bash;
environment.etc = environment.etc =
lib.mapAttrs' lib.mapAttrs'
(name: value: { (name: value: {
@ -78,7 +88,7 @@
boot.loader.systemd-boot.enable = true; boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true; boot.loader.efi.canTouchEfiVariables = true;
console.keyMap = "sv-latin1"; console.keyMap = "sv-latin1";
programs.zsh.enable = true; # programs.zsh.enable = true;
services = { services = {
openssh = { openssh = {

View file

@ -13,7 +13,9 @@
../moduler/common/dmenu.nix ../moduler/common/dmenu.nix
../moduler/common/kitty.nix ../moduler/common/kitty.nix
../moduler/common/tmux.nix ../moduler/common/tmux.nix
../moduler/common/zsh.nix # ../moduler/common/zsh.nix
../moduler/common/fish.nix
../moduler/common/starship.nix
../moduler/common/git.nix ../moduler/common/git.nix
../moduler/common/nixpkgs.nix ../moduler/common/nixpkgs.nix
../moduler/common/firefox.nix ../moduler/common/firefox.nix
@ -69,6 +71,7 @@
bluez-tools bluez-tools
sops sops
age age
grc
#Terminal #Terminal
git git
@ -90,6 +93,8 @@
poppler_utils poppler_utils
pandoc pandoc
ncspot ncspot
starship
any-nix-shell
#Desktop #Desktop
aerc aerc
@ -163,6 +168,7 @@
dotnetPackages.Nuget dotnetPackages.Nuget
]; ];
programs.home-manager.enable = true; programs.home-manager.enable = true;
programs.fish.enable = true;
xsession.enable = true; xsession.enable = true;
xsession.windowManager.command = "exec dwm"; xsession.windowManager.command = "exec dwm";

View file

@ -4,7 +4,7 @@
}: { }: {
# TODO: Configure your system-wide user settings (groups, etc), add more users as needed. # TODO: Configure your system-wide user settings (groups, etc), add more users as needed.
users = { users = {
defaultUserShell = pkgs.zsh; defaultUserShell = pkgs.bash;
users = { users = {
fw = { fw = {
initialPassword = "password"; initialPassword = "password";

View file

@ -16,15 +16,9 @@
]; ];
networking.hostName = myhostname; networking.hostName = myhostname;
sops.defaultSopsFile = ../../secrets/fred.yaml;
# This will automatically import SSH keys as age keys
sops.age.sshKeyPaths = [ "~/.ssh/id_ed" ];
# This is using an age key that is expected to already be in the filesystem
sops.age.keyFile = "~/.config/sops/age/keys.txt";
sops.secrets.spotify_password = {};
services.xserver.dpi = 140; services.xserver.dpi = 140;
services.spotifyd.settings.password = "${config.sops.secrets.spotify_password}"; # services.spotifyd.settings.password = config.sops.secrets."spotify_password".path;
# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion # https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
system.stateVersion = "23.11"; system.stateVersion = "23.11";
} }

View file

@ -12,7 +12,17 @@
sha256 = "0dbnir6jbwjpjalz14snzd3cgdysgcs3raznsijd6savad3qhijc"; sha256 = "0dbnir6jbwjpjalz14snzd3cgdysgcs3raznsijd6savad3qhijc";
}; };
} }
{ name = "grc"; src = pkgs.fishPlugins.grc.src; } {
name = "grc";
src = pkgs.fishPlugins.grc.src;
}
]; ];
shellAbbrs = {
homec="nvim ~/nix/config/home.nix";
ls="exa -lag --header";
};
interactiveShellInit = ''
${pkgs.any-nix-shell}/bin/any-nix-shell fish --info-right | source
'';
}; };
} }

View file

@ -12,7 +12,7 @@
# size = 30; # size = 30;
}; };
shellIntegration = { shellIntegration = {
enableZshIntegration = true; # enableZshIntegration = true;
mode = "no-cursor"; mode = "no-cursor";
}; };
theme = "Catppuccin-Macchiato"; theme = "Catppuccin-Macchiato";

View file

@ -4,7 +4,7 @@
enable = true; enable = true;
settings = { settings = {
username = "fredzyw"; username = "fredzyw";
password = sops.secrets.spotify_password; # password = sops.secrets.spotify_password;
device_name = myhostname; device_name = myhostname;
}; };
}; };

View file

@ -1,20 +1,59 @@
# This file is generated from "README.org" # This file is generated from "README.org"
{ pkgs, ... }: { pkgs, ... }:
{ {
programs.starship.enable = true; programs.starship =
programs.starship.enableFishIntegration = true; let
programs.starship.package = pkgs.unstable.starship; flavour = "macchiato"; # One of `latte`, `frappe`, `macchiato`, or `mocha`
programs.starship.settings.add_newline = true; in
programs.starship.settings.character = { {
success_symbol = "[𝝺](#c792ea)"; enable = true;
vicmd_symbol = "[ ](bold green)"; enableFishIntegration = true;
error_symbol = "[ ](bold red)"; settings = {
}; # Other config here
programs.starship.settings.directory = { # format = "$all"; # Remove this line to disable the default prompt format
style = "bold cyan"; palette = "catppuccin_${flavour}";
}; nix_shell = {
programs.starship.settings.nix_shell = { disabled = false;
disabled = false; symbol = " ";
symbol = " "; };
}; } // builtins.fromTOML (builtins.readFile
(pkgs.fetchFromGitHub
{
owner = "catppuccin";
repo = "starship";
rev = "5629d2356f62a9f2f8efad3ff37476c19969bd4f"; # Replace with the latest commit hash
sha256 = "sha256-nsRuxQFKbQkyEI4TXgvAjcroVdG+heKX5Pauq/4Ota0=";
} + /palettes/${flavour}.toml));
};
# programs.starship = {
# enable = true;
# enableFishIntegration = true;
# package = pkgs.starship;
# settings = {
# # Other config here
# format = "$all"; # Remove this line to disable the default prompt format
# palette = "catppuccin_macchiato";
# add_newline = true;
# character = {
# success_symbol = "[𝝺](#c792ea)";
# vicmd_symbol = "[ ](bold green)";
# error_symbol = "[☓ ](bold red)";
# };
# directory = {
# style = "bold cyan";
# };
# nix_shell = {
# disabled = false;
# symbol = " ";
# };
# } // builtins.fromTOML (builtins.readFile
# (pkgs.fetchFromGitHub
# {
# owner = "catppuccin";
# repo = "starship";
# rev = ""; # Replace with the latest commit hash
# sha256 = "";
# } + /palettes/macchiato.toml));
# };
# }
} }

View file

@ -21,8 +21,20 @@
file = "share/zsh-powerlevel10k/powerlevel10k.zsh-theme"; file = "share/zsh-powerlevel10k/powerlevel10k.zsh-theme";
} }
{ {
name = "zsh-syntax-highlighting"; name = "fash-syntax-highlighting";
src = pkgs.zsh-syntax-highlighting; file = "fast-syntax-highlighting.plugin.zsh";
src = builtins.fetchGit {
url = "https://github.com/zdharma-continuum/fast-syntax-highlighting";
rev = "cf318e06a9b7c9f2219d78f41b46fa6e06011fd9";
};
}
{
name = "zsh-fzf-history-search";
file = "zsh-fzf-history-search.plugin.zsh";
src = builtins.fetchGit {
url = "https://github.com/joshskidmore/zsh-fzf-history-search";
rev = "741012388886e7ee39330fe3cdb6a4803012dc0b";
};
} }
{ {
name = "zsh-autosuggestions"; name = "zsh-autosuggestions";