feat(cli): remove cli module and move zsh config to systems
This commit is contained in:
parent
527a166a86
commit
2387ad9099
3 changed files with 11 additions and 24 deletions
|
@ -1,24 +0,0 @@
|
||||||
{
|
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
{
|
|
||||||
imports = [ ];
|
|
||||||
|
|
||||||
options.cli = { };
|
|
||||||
|
|
||||||
config = lib.mkMerge [
|
|
||||||
{
|
|
||||||
programs.zsh.enable = true;
|
|
||||||
users.defaultUserShell = pkgs.zsh;
|
|
||||||
environment.pathsToLink = [ "/share/zsh" ]; # enables completion
|
|
||||||
}
|
|
||||||
{
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
p7zip
|
|
||||||
];
|
|
||||||
}
|
|
||||||
];
|
|
||||||
}
|
|
|
@ -1,3 +1,7 @@
|
||||||
|
{ pkgs, ... }:
|
||||||
|
let
|
||||||
|
inherit (pkgs) zsh;
|
||||||
|
in
|
||||||
{
|
{
|
||||||
system.mainUser = {
|
system.mainUser = {
|
||||||
name = "rafiq";
|
name = "rafiq";
|
||||||
|
@ -5,5 +9,12 @@
|
||||||
email = "rafiq@rrv.sh";
|
email = "rafiq@rrv.sh";
|
||||||
};
|
};
|
||||||
server.mountHelios = true;
|
server.mountHelios = true;
|
||||||
|
|
||||||
|
users.defaultUserShell = zsh;
|
||||||
|
programs = {
|
||||||
|
zsh.enable = true;
|
||||||
|
zsh.enableCompletion = true;
|
||||||
|
};
|
||||||
|
|
||||||
nixpkgs.hostPlatform = "x86_64-linux";
|
nixpkgs.hostPlatform = "x86_64-linux";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue