initial nixos-config
This commit is contained in:
16
home/modules/cli/bash.nix
Normal file
16
home/modules/cli/bash.nix
Normal file
@ -0,0 +1,16 @@
|
||||
{ config, lib, pkgs, ...}:
|
||||
let
|
||||
inherit (lib) mkIf;
|
||||
hasNeovim = config.programs.neovim.enable;
|
||||
in
|
||||
{
|
||||
programs.bash = {
|
||||
enable = true;
|
||||
shellAliases = {
|
||||
ll = "ls -lisah --color=auto";
|
||||
".." = "cd ..";
|
||||
vim = mkIf hasNeovim "nvim";
|
||||
vi = mkIf hasNeovim "nvim";
|
||||
};
|
||||
};
|
||||
}
|
6
home/modules/cli/bat.nix
Normal file
6
home/modules/cli/bat.nix
Normal file
@ -0,0 +1,6 @@
|
||||
{
|
||||
programs.bat = {
|
||||
enable = true;
|
||||
config.theme = "base16";
|
||||
};
|
||||
}
|
8
home/modules/cli/default.nix
Normal file
8
home/modules/cli/default.nix
Normal file
@ -0,0 +1,8 @@
|
||||
{
|
||||
imports = [
|
||||
./bash.nix
|
||||
./git.nix
|
||||
./bat.nix
|
||||
];
|
||||
}
|
||||
|
8
home/modules/cli/git.nix
Normal file
8
home/modules/cli/git.nix
Normal file
@ -0,0 +1,8 @@
|
||||
{
|
||||
programs.git = {
|
||||
enable = true;
|
||||
userName = "crurak";
|
||||
userEmail = "s.spangenberg@posteo.de";
|
||||
ignores = [ ".direnv" "result"];
|
||||
};
|
||||
}
|
3
home/modules/desktop/common/default.nix
Normal file
3
home/modules/desktop/common/default.nix
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
|
||||
}
|
3
home/modules/desktop/default.nix
Normal file
3
home/modules/desktop/default.nix
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
|
||||
}
|
4
home/modules/hyprland/default.nix
Normal file
4
home/modules/hyprland/default.nix
Normal file
@ -0,0 +1,4 @@
|
||||
{ config, pkgs, ... }: {
|
||||
hyprland.homeManagerModules.default
|
||||
|
||||
}
|
8
home/modules/librewolf.nix
Normal file
8
home/modules/librewolf.nix
Normal file
@ -0,0 +1,8 @@
|
||||
{
|
||||
programs.librewolf = {
|
||||
enable = true;
|
||||
settings = {
|
||||
|
||||
};
|
||||
};
|
||||
}
|
23
home/modules/neovim/default.nix
Normal file
23
home/modules/neovim/default.nix
Normal file
@ -0,0 +1,23 @@
|
||||
{ config, pkgs, ...}:
|
||||
|
||||
{
|
||||
home.sessionVariables.Editor = "nvim";
|
||||
|
||||
programs = {
|
||||
neovim = {
|
||||
enable = true;
|
||||
|
||||
extraConfig = ''
|
||||
syntax enable
|
||||
colorscheme gruvbox
|
||||
set number relativenumber
|
||||
highlight Comment cterm=italic gui=italic
|
||||
hi Normal guibg=NONE ctermbg=NONE
|
||||
'';
|
||||
plugins = with pkgs.vimPlugins; [
|
||||
vim-nix
|
||||
gruvbox
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user