🐟 shell

This commit is contained in:
Andrea Ciceri 2023-10-22 10:15:46 +02:00
parent c8bd8acd8b
commit 19f999514e
Signed by: aciceri
SSH key fingerprint: SHA256:/AagBweyV4Hlfg9u092n8hbHwD5fcB6A3qhDiDA65Rg
2 changed files with 169 additions and 137 deletions

View file

@ -14,7 +14,7 @@
modules = lib.mkOption {
type = with lib.types; listOf str;
default = ["shell" "git" "nix-index"];
default = [];
};
packages = lib.mkOption {
@ -45,6 +45,7 @@
config = lib.mkIf config.ccr.enable {
ccr.extraGroups = ["wheel" "fuse" "networkmanager" "dialout"];
ccr.modules = ["shell" "git" "nix-index"];
users.users.ccr = {
uid = 1000;
@ -52,11 +53,11 @@
description = "Andrea Ciceri";
isNormalUser = true;
inherit (config.ccr) extraGroups;
shell = pkgs.zsh;
shell = pkgs.fish;
openssh.authorizedKeys.keys = config.ccr.authorizedKeys;
};
programs.zsh.enable = true;
programs.fish.enable = true;
services.getty.autologinUser =
if config.ccr.autologin