Files

57 lines
1.5 KiB
Nix
Raw Permalink Normal View History

2025-01-13 00:46:22 +01:00
{ config, pkgs, ... }:
{
2025-01-13 01:09:41 +01:00
# Also install these globally
programs.fish.enable = true;
environment.systemPackages = with pkgs; [
fishPlugins.done
fishPlugins.fzf-fish
fishPlugins.forgit
fishPlugins.hydro
fzf
fishPlugins.grc
grc
];
# Keep bash as the interactive shell (bcuz fish is not posix compliant) and launch fish immediately
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
'';
2025-01-13 00:46:22 +01:00
# Define a user account. Don't forget to set a password with passwd.
users.users.stormwind = {
isNormalUser = true;
description = "stormwind";
extraGroups = [
"networkmanager"
"wheel"
2025-01-13 01:52:37 +01:00
"incus-admin"
2025-01-13 00:46:22 +01:00
];
packages = with pkgs; [];
openssh.authorizedKeys.keys = [
2025-07-02 08:37:50 +02:00
''ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIN813v9B9Af6u3lvoPkcMzbh3/3gwRNLi58HCOjVLE0N''
2025-01-13 00:46:22 +01:00
''ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBsZZ1qSy+cu1QMlPoZZ2ovv8G+4OIyI07/di68F7NtZ leon macbook''
];
};
home-manager.users.stormwind = { pkgs, ... }: {
imports =
[
./git.nix
2025-01-13 01:09:41 +01:00
./fish.nix
2025-01-13 00:46:22 +01:00
];
home.stateVersion = "24.11";
2025-01-13 01:29:08 +01:00
home.file = {
".config/nvim/init.vim".source = dotfiles/neovim/init.vim;
2025-04-07 12:45:31 +02:00
".config/helix/config.toml".source = dotfiles/helix.toml;
2025-01-13 01:29:08 +01:00
};
2025-01-13 00:46:22 +01:00
};
}