Compare commits

..

2 commits

Author SHA1 Message Date
Felix Buehler
5105f8b1a4 machines: enable zsh by default
Some checks failed
/ Build Nix targets (push) Has been cancelled
2026-01-11 19:20:56 +01:00
Felix Buehler
74ec60d50d profile/zsh: init 2026-01-11 19:07:14 +01:00
4 changed files with 22 additions and 2 deletions

View file

@ -1,4 +1,4 @@
{ self, ... }:
{ self, lib, ... }:
let
inherit (self.inputs)
disko
@ -46,6 +46,7 @@ let
}
{
my.profiles.core.enable = true;
my.profiles.zsh.enable = lib.mkDefault true;
}
../modules
../profiles

View file

@ -19,7 +19,6 @@ in
users.users.nixremote = {
isSystemUser = true;
group = "nixremote";
shell = pkgs.bashInteractive;
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGYSzDdxqaNHmaaLqEvOK/vB65zvqoCebI3Nxzgg5smq root@workman"
];

View file

@ -23,5 +23,6 @@
./update
./usb-iso
./webcam
./zsh
];
}

19
profiles/zsh/default.nix Normal file
View file

@ -0,0 +1,19 @@
{
config,
lib,
pkgs,
...
}:
let
cfg = config.my.profiles.zsh;
in
{
options.my.profiles.zsh = with lib; {
enable = mkEnableOption "zsh profile";
};
config = lib.mkIf cfg.enable {
users.defaultUserShell = pkgs.zsh;
programs.zsh.enable = true;
};
}