feat: set zsh as default
Signed-off-by: Lander Van den Bulcke <landervandenbulcke@gmail.com>
This commit is contained in:
parent
9191bef278
commit
5065e7ce40
2 changed files with 12 additions and 7 deletions
|
|
@ -33,12 +33,12 @@
|
||||||
patch_tox_ruff() {
|
patch_tox_ruff() {
|
||||||
for x in $(find .tox -name ruff -type f -print); do
|
for x in $(find .tox -name ruff -type f -print); do
|
||||||
rm $x;
|
rm $x;
|
||||||
ln -sf $(which ruff) $x;
|
ln -sf $(which ruff) $x;
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
clean-crafts-lxc() {
|
clean-crafts-lxc() {
|
||||||
for CRAFT in snapcraft rockcraft charmcraft; do
|
for CRAFT in snapcraft rockcraft charmcraft; do
|
||||||
lxc --project $CRAFT list -fcsv -cn | xargs lxc --project $CRAFT delete -f >/dev/null
|
lxc --project $CRAFT list -fcsv -cn | xargs lxc --project $CRAFT delete -f >/dev/null
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
@ -48,6 +48,7 @@
|
||||||
|
|
||||||
shellAliases = {
|
shellAliases = {
|
||||||
ls = "eza -gl --git --color=automatic";
|
ls = "eza -gl --git --color=automatic";
|
||||||
|
ll = "eza -gl --git --color=automatic";
|
||||||
tree = "eza --tree";
|
tree = "eza --tree";
|
||||||
cat = "bat";
|
cat = "bat";
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,18 +1,22 @@
|
||||||
{ pkgs, config, lib, ... }:
|
|
||||||
let
|
|
||||||
ifTheyExist = groups: builtins.filter (group: builtins.hasAttr group config.users.groups) groups;
|
|
||||||
in
|
|
||||||
{
|
{
|
||||||
|
pkgs,
|
||||||
|
config,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
ifTheyExist = groups: builtins.filter (group: builtins.hasAttr group config.users.groups) groups;
|
||||||
|
in {
|
||||||
users.users.lander = {
|
users.users.lander = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
description = "Lander";
|
description = "Lander";
|
||||||
|
userDefaultShell = "zsh";
|
||||||
extraGroups = ifTheyExist [
|
extraGroups = ifTheyExist [
|
||||||
"networkmanager"
|
"networkmanager"
|
||||||
"wheel"
|
"wheel"
|
||||||
];
|
];
|
||||||
|
|
||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
pkgs.home-manager
|
home-manager
|
||||||
|
zsh
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue