convert back to nix
This commit is contained in:
parent
4ef8f0e55c
commit
73884c824e
9 changed files with 143 additions and 139 deletions
|
|
@ -1,22 +0,0 @@
|
||||||
{
|
|
||||||
pkgs,
|
|
||||||
lib,
|
|
||||||
...
|
|
||||||
}: let
|
|
||||||
mkVim = src: langs:
|
|
||||||
builtins.listToAttrs (map (lang: {
|
|
||||||
name = ".vim/after/ftplugin/${lang}.vim";
|
|
||||||
value = {source = src;};
|
|
||||||
})
|
|
||||||
langs);
|
|
||||||
in {
|
|
||||||
home.file = lib.mkMerge [
|
|
||||||
{
|
|
||||||
".config/fastfetch/config.jsonc".source = ./dotfiles/fastfetch.jsonc;
|
|
||||||
}
|
|
||||||
(mkVim ./dotfiles/vim/tab2.vim ["javascript" "typescript" "html" "css" "json" "nix" "vim"])
|
|
||||||
(mkVim ./dotfiles/vim/tab4.vim ["python" "rust" "java" "lua" "c" "cpp" "h" "hpp"])
|
|
||||||
(mkVim ./dotfiles/vim/tabs.vim ["go" "make"])
|
|
||||||
(mkVim ./dotfiles/vim/lisp.vim ["lisp" "scheme" "clojure" "racket"])
|
|
||||||
];
|
|
||||||
}
|
|
||||||
|
|
@ -1,87 +0,0 @@
|
||||||
{
|
|
||||||
"$schema": "https://github.com/fastfetch-cli/fastfetch/raw/dev/doc/json_schema.json",
|
|
||||||
"logo": {
|
|
||||||
"type": "small",
|
|
||||||
"padding": {
|
|
||||||
"top": 4,
|
|
||||||
"left": 3,
|
|
||||||
"right": 4
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"display": {
|
|
||||||
"separator": " "
|
|
||||||
},
|
|
||||||
"modules": [
|
|
||||||
{
|
|
||||||
"key": "╭─────────╮",
|
|
||||||
"type": "custom"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"key": "│ {#31}user {#keys}│",
|
|
||||||
"type": "title",
|
|
||||||
"format": "{user-name}"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"key": "│ {#32}host {#keys}│",
|
|
||||||
"type": "title",
|
|
||||||
"format": "{host-name}"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"key": "│ {#33}uptime {#keys}│",
|
|
||||||
"type": "uptime"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"key": "│ {#34}distro {#keys}│",
|
|
||||||
"type": "os"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"key": "│ {#35}kernel {#keys}│",
|
|
||||||
"type": "kernel"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"key": "│ {#36}desktop {#keys}│",
|
|
||||||
"type": "de"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"key": "│ {#31}term {#keys}│",
|
|
||||||
"type": "terminal"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"key": "│ {#32}shell {#keys}│",
|
|
||||||
"type": "shell"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"key": "│ {#33}cpu {#keys}│",
|
|
||||||
"type": "cpu",
|
|
||||||
"showPeCoreCount": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"key": "│ {#34}disk {#keys}│",
|
|
||||||
"type": "disk",
|
|
||||||
"folders": "/"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"key": "│ {#35}memory {#keys}│",
|
|
||||||
"type": "memory"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"key": "│ {#36}network {#keys}│",
|
|
||||||
"type": "localip",
|
|
||||||
"format": "{ipv4} ({ifname})"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"key": "├─────────┤",
|
|
||||||
"type": "custom"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"key": "│ {#39}colors {#keys}│",
|
|
||||||
"type": "colors",
|
|
||||||
"symbol": "circle"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"key": "╰─────────╯",
|
|
||||||
"type": "custom"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
@ -1,10 +0,0 @@
|
||||||
setlocal expandtab
|
|
||||||
setlocal tabstop=2
|
|
||||||
setlocal shiftwidth=2
|
|
||||||
setlocal softtabstop=2
|
|
||||||
|
|
||||||
setlocal lisp
|
|
||||||
setlocal autoindent
|
|
||||||
setlocal showmatch
|
|
||||||
|
|
||||||
setlocal lispwords+=defmacro,defmethod,define-syntax,let,let*,letre,cond
|
|
||||||
|
|
@ -1,4 +0,0 @@
|
||||||
setlocal expandtab
|
|
||||||
setlocal tabstop=2
|
|
||||||
setlocal shiftwidth=2
|
|
||||||
setlocal softtabstop=2
|
|
||||||
|
|
@ -1,4 +0,0 @@
|
||||||
setlocal expandtab
|
|
||||||
setlocal tabstop=4
|
|
||||||
setlocal shiftwidth=4
|
|
||||||
setlocal softtabstop=4
|
|
||||||
|
|
@ -1,4 +0,0 @@
|
||||||
setlocal tabstop=4
|
|
||||||
setlocal shiftwidth=4
|
|
||||||
setlocal noexpandtab
|
|
||||||
|
|
||||||
|
|
@ -1,7 +1,4 @@
|
||||||
{
|
{pkgs, ...}: let
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}: let
|
|
||||||
programsDir = ./programs;
|
programsDir = ./programs;
|
||||||
programsImports = map (name: programsDir + "/${name}") (
|
programsImports = map (name: programsDir + "/${name}") (
|
||||||
builtins.filter
|
builtins.filter
|
||||||
|
|
@ -9,9 +6,7 @@
|
||||||
(builtins.attrNames (builtins.readDir programsDir))
|
(builtins.attrNames (builtins.readDir programsDir))
|
||||||
);
|
);
|
||||||
in {
|
in {
|
||||||
imports = [
|
imports = programsImports;
|
||||||
./dotfiles.nix
|
|
||||||
] ++ programsImports;
|
|
||||||
|
|
||||||
home = {
|
home = {
|
||||||
stateVersion = "26.05"; # I hope you know what you're doing. :)
|
stateVersion = "26.05"; # I hope you know what you're doing. :)
|
||||||
|
|
@ -21,7 +16,6 @@ in {
|
||||||
|
|
||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
# programs
|
# programs
|
||||||
fastfetch
|
|
||||||
tdf
|
tdf
|
||||||
# productivity
|
# productivity
|
||||||
libreoffice-fresh
|
libreoffice-fresh
|
||||||
|
|
|
||||||
91
users/coyote/programs/fastfetch.nix
Normal file
91
users/coyote/programs/fastfetch.nix
Normal file
|
|
@ -0,0 +1,91 @@
|
||||||
|
{pkgs, ...}: {
|
||||||
|
programs.fastfetch = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
"$schema" = "https://github.com/fastfetch-cli/fastfetch/raw/dev/doc/json_schema.json";
|
||||||
|
logo = {
|
||||||
|
type = "small";
|
||||||
|
padding = {
|
||||||
|
top = 4;
|
||||||
|
left = 3;
|
||||||
|
right = 4;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
display = {
|
||||||
|
separator = " ";
|
||||||
|
};
|
||||||
|
modules = [
|
||||||
|
{
|
||||||
|
key = "╭─────────╮";
|
||||||
|
type = "custom";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
key = "│ {#31}user {#keys}│";
|
||||||
|
type = "title";
|
||||||
|
format = "{user-name}";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
key = "│ {#32}host {#keys}│";
|
||||||
|
type = "title";
|
||||||
|
format = "{host-name}";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
key = "│ {#33}uptime {#keys}│";
|
||||||
|
type = "uptime";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
key = "│ {#34}distro {#keys}│";
|
||||||
|
type = "os";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
key = "│ {#35}kernel {#keys}│";
|
||||||
|
type = "kernel";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
key = "│ {#36}desktop {#keys}│";
|
||||||
|
type = "de";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
key = "│ {#31}term {#keys}│";
|
||||||
|
type = "terminal";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
key = "│ {#32}shell {#keys}│";
|
||||||
|
type = "shell";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
key = "│ {#33}cpu {#keys}│";
|
||||||
|
type = "cpu";
|
||||||
|
showPeCoreCount = true;
|
||||||
|
}
|
||||||
|
{
|
||||||
|
key = "│ {#34}disk {#keys}│";
|
||||||
|
type = "disk";
|
||||||
|
folders = "/";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
key = "│ {#35}memory {#keys}│";
|
||||||
|
type = "memory";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
key = "│ {#36}network {#keys}│";
|
||||||
|
type = "localip";
|
||||||
|
format = "{ipv4} ({ifname})";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
key = "├─────────┤";
|
||||||
|
type = "custom";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
key = "│ {#39}colors {#keys}│";
|
||||||
|
type = "colors";
|
||||||
|
symbol = "circle";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
key = "╰─────────╯";
|
||||||
|
type = "custom";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
{
|
{
|
||||||
pkgs,
|
pkgs,
|
||||||
|
lib,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
programs.vim = {
|
programs.vim = {
|
||||||
|
|
@ -46,6 +47,9 @@
|
||||||
set ignorecase
|
set ignorecase
|
||||||
set smartcase
|
set smartcase
|
||||||
|
|
||||||
|
" keybinds
|
||||||
|
inoremap <C-l> λ
|
||||||
|
|
||||||
" gruvbox
|
" gruvbox
|
||||||
set termguicolors
|
set termguicolors
|
||||||
set background=dark
|
set background=dark
|
||||||
|
|
@ -59,4 +63,50 @@
|
||||||
let g:indent_guides_start_level = 3
|
let g:indent_guides_start_level = 3
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
home.file = let
|
||||||
|
mkVim = content: langs:
|
||||||
|
builtins.listToAttrs (map (lang: {
|
||||||
|
name = ".vim/after/ftplugin/${lang}.vim";
|
||||||
|
value = {text = content;};
|
||||||
|
})
|
||||||
|
langs);
|
||||||
|
|
||||||
|
tab2Vim = ''
|
||||||
|
setlocal expandtab
|
||||||
|
setlocal tabstop=2
|
||||||
|
setlocal shiftwidth=2
|
||||||
|
setlocal softtabstop=2
|
||||||
|
'';
|
||||||
|
tab4Vim = ''
|
||||||
|
setlocal expandtab
|
||||||
|
setlocal tabstop=4
|
||||||
|
setlocal shiftwidth=4
|
||||||
|
setlocal softtabstop=4
|
||||||
|
'';
|
||||||
|
tabsVim = ''
|
||||||
|
setlocal noexpandtab
|
||||||
|
setlocal tabstop=4
|
||||||
|
setlocal shiftwidth=4
|
||||||
|
setlocal softtabstop=0
|
||||||
|
'';
|
||||||
|
lispVim = ''
|
||||||
|
setlocal expandtab
|
||||||
|
setlocal tabstop=2
|
||||||
|
setlocal shiftwidth=2
|
||||||
|
setlocal softtabstop=2
|
||||||
|
|
||||||
|
setlocal lisp
|
||||||
|
setlocal autoindent
|
||||||
|
setlocal showmatch
|
||||||
|
|
||||||
|
setlocal lispwords+=defmacro,defmethod,define-syntax,let,let*,letre,cond
|
||||||
|
'';
|
||||||
|
in
|
||||||
|
lib.mkMerge [
|
||||||
|
(mkVim tab2Vim ["javascript" "typescript" "html" "css" "json" "nix" "vim"])
|
||||||
|
(mkVim tab4Vim ["python" "rust" "java" "lua" "c" "cpp" "h" "hpp"])
|
||||||
|
(mkVim tabsVim ["go" "make"])
|
||||||
|
(mkVim lispVim ["lisp" "scheme" "clojure" "racket"])
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Reference in a new issue