home: move around things a bit

Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
This commit is contained in:
2024-06-01 16:57:00 +05:30
parent 48e46b465f
commit 684b9a41cc
12 changed files with 61 additions and 50 deletions

9
home/common/laptop.nix Normal file
View File

@@ -0,0 +1,9 @@
{ lib, ... }:
{
options.isLaptop = lib.mkOption {
type = lib.types.bool;
default = false;
example = true;
description = "Whether this device is a laptop or not";
};
}

8
home/common/programs.nix Normal file
View File

@@ -0,0 +1,8 @@
{ config, ... }:
{
programs = {
home-manager.enable = true;
password-store.enable = true;
direnv.enable = true;
};
}

24
home/common/zsh.nix Normal file
View File

@@ -0,0 +1,24 @@
{ ... }:
{
programs.zsh = {
enable = true;
autocd = true;
history = rec {
expireDuplicatesFirst = true;
size = 30000;
save = size;
};
autosuggestion.enable = true;
enableCompletion = true;
syntaxHighlighting.enable = true;
prezto = {
enable = true;
prompt.theme = "pure";
autosuggestions.color = "fg=yellow,bold";
utility.safeOps = false;
};
initExtra = ''
unsetopt extendedGlob
'';
};
}