mirror of
https://github.com/TheWanderingCrow/CrOS.git
synced 2026-01-22 22:54:14 -05:00
repo restructure
This commit is contained in:
parent
1c9fd8d611
commit
62bec7e920
13 changed files with 218 additions and 193 deletions
7
modules/software/default.nix
Normal file
7
modules/software/default.nix
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
imports = [
|
||||
./keyd.nix
|
||||
./usershell.nix
|
||||
./xdg.nix
|
||||
];
|
||||
}
|
||||
36
modules/software/keyd.nix
Normal file
36
modules/software/keyd.nix
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
{
|
||||
services.keyd = {
|
||||
enable = true;
|
||||
keyboards.default = {
|
||||
ids = ["*"];
|
||||
extraConfig = ''
|
||||
[global]
|
||||
|
||||
default_layout = main
|
||||
|
||||
[main:layout]
|
||||
|
||||
capslock = layer(standardL2)
|
||||
|
||||
[standardL2]
|
||||
|
||||
w = up
|
||||
s = down
|
||||
a = left
|
||||
d = right
|
||||
|
||||
b = C-b
|
||||
|
||||
space = playpause
|
||||
. = nextsong
|
||||
, = previoussong
|
||||
|
||||
[ = delete
|
||||
] = end
|
||||
escape = ~
|
||||
|
||||
home = end
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
48
modules/software/usershell.nix
Normal file
48
modules/software/usershell.nix
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
{pkgs}: {
|
||||
programs.zsh = {
|
||||
enable = true;
|
||||
autosuggestions = {
|
||||
enable = true;
|
||||
async = true;
|
||||
};
|
||||
syntaxHighlighting = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
|
||||
programs.starship = {
|
||||
enable = true;
|
||||
settings = {
|
||||
format = "[░▒▓](#a3aed2)[ ](bg:#a3aed2 fg:#090c0c)[](bg:#769ff0 fg:#a3aed2)$directory[](fg:#769ff0 bg:#394260)$git_branch$git_status[](fg:#394260 bg:#212736)$php[](fg:#212736 bg:#1d2230)$time[ ](fg:#1d2230)$character";
|
||||
|
||||
directory = {
|
||||
style = "fg:#e3e5e5 bg:#769ff0";
|
||||
format = "[ $path ]($style)";
|
||||
truncation_length = 3;
|
||||
truncation_symbol = "…/";
|
||||
};
|
||||
git_branch = {
|
||||
symbol = "";
|
||||
style = "bg:#394260";
|
||||
format = "[[ $symbol $branch ](fg:#769ff0 bg:#394260)]($style)";
|
||||
};
|
||||
git_status = {
|
||||
style = "bg:#394260";
|
||||
format = "[[($all_status$ahead_behind )](fg:#769ff0 bg:#394260)]($style)";
|
||||
};
|
||||
php = {
|
||||
symbol = "";
|
||||
style = "bg:#212736";
|
||||
format = "[[ $symbol ($version) ](fg:#769ff0 bg:#212736)]($style)";
|
||||
};
|
||||
time = {
|
||||
disabled = false;
|
||||
time_format = "%R"; # Hour:Minute Format
|
||||
style = "bg:#1d2230";
|
||||
format = "[[ $time ](fg:#a0a9cb bg:#1d2230)]($style)";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
users.defaultUserShell = pkgs.zsh;
|
||||
}
|
||||
13
modules/software/xdg.nix
Normal file
13
modules/software/xdg.nix
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
{pkgs}: {
|
||||
xdg.portal = {
|
||||
xdgOpenUsePortal = true;
|
||||
enable = true;
|
||||
wlr.enable = true;
|
||||
lxqt.enable = true;
|
||||
extraPortals = [
|
||||
pkgs.xdg-desktop-portal-wlr
|
||||
pkgs.xdg-desktop-portal-gtk
|
||||
pkgs.xdg-desktop-portal-kde
|
||||
];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue