This commit is contained in:
Bad 2021-04-09 19:51:39 +02:00
parent 93ff048648
commit 621cab576f
7 changed files with 95 additions and 69 deletions

View File

@ -118,11 +118,11 @@
]
},
"locked": {
"lastModified": 1617824750,
"narHash": "sha256-C5iZZAFqyVhenqc4/Osfyrm5DdvHZ+QTondSJ2hEE4g=",
"lastModified": 1617894699,
"narHash": "sha256-zlG3xNXgqo5pbMmfq8YaqGoVjElHnTDnEz13A+pUbZY=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "be56b6f2c5df6a4da8c91d4a3174f77d66c35533",
"rev": "56f5f41ed42f7d476a7c79fa8ec71f5605487abf",
"type": "github"
},
"original": {
@ -153,11 +153,11 @@
},
"nixos": {
"locked": {
"lastModified": 1617636226,
"narHash": "sha256-iZhBWrOR2DoDs1C+0FlnM9AQLMol/qoGQ+d+S43CKJM=",
"lastModified": 1617899217,
"narHash": "sha256-gd5JHH7IkeoIQ/oiGZSqDpGdGt7DMRJTQ8JiD8+hdOQ=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "3d1a7716d7f1fccbd7d30ab3b2ed3db831f43bde",
"rev": "9e377a6ce42dccd9b624ae4ce8f978dc892ba0e2",
"type": "github"
},
"original": {
@ -183,11 +183,11 @@
},
"nur": {
"locked": {
"lastModified": 1617867336,
"narHash": "sha256-yvXbthop3QTusctBAnfdxqEstoD/lizEMkxV/iiVSYI=",
"lastModified": 1617957901,
"narHash": "sha256-aRaaSXPMwVircYKtK75jMCWf8RMD44t62Qx2MipApX0=",
"owner": "nix-community",
"repo": "NUR",
"rev": "b0d7be4deb6c1c4bb20b19666b43b1cf829e709f",
"rev": "0ba8bb129db0370eff1891b85c86fbdbd3188a64",
"type": "github"
},
"original": {
@ -197,11 +197,11 @@
},
"override": {
"locked": {
"lastModified": 1617877974,
"narHash": "sha256-+vpQTptGNpRl90IPOA+R1+8eNr3fYxOYlq47hmgPfw4=",
"lastModified": 1617956877,
"narHash": "sha256-WaGyeE/T3gZuWs2NXYRoqdpDFTnQd+GVlO1e7nO4b0Y=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "034c49f514e0aa759eb3f320c1a8c78084b69eec",
"rev": "1d406295a3cff86d16bb27d3ae2b36021802ef1b",
"type": "github"
},
"original": {

View File

@ -8,6 +8,6 @@
# packages pulled from override
packages = pkgs: final: prev: {
#inherit (pkgs)
# inherit (pkgs) tracker;
};
}

View File

@ -0,0 +1,6 @@
{ pkgs, ... }:
{
environment.systemPackages = [
pkgs.flatpak
];
}

View File

@ -0,0 +1,6 @@
{ pkgs, ... }:
{
environment.systemPackages = with pkgs; [
qbittorrent
];
}

View File

@ -2,7 +2,7 @@
{
system = with profiles; rec {
base = [ users.mae users.root ];
workstation = base ++ [ sway develop game profiles.workstation ssh ];
workstation = base ++ [ sway develop game profiles.workstation ssh flatpak torrents ];
desktop = workstation ++ [ amd school three_dee ];
lap = workstation ++ [ laptop bluetooth print networkmanager ];
};

View File

@ -2,62 +2,19 @@
{
home-manager.users.mae = {
imports = [ ../profiles/git ];
programs.neovim = {
enable = true;
vimdiffAlias = true;
withNodeJs = true;
plugins = with pkgs.vimPlugins; [
{
plugin = coc-nvim;
config = ''
nmap <silent> <F2> <Plug>(coc-rename)
inoremap <expr> <Tab> pumvisible() ? "\<C-n>" : "\<Tab>"
inoremap <expr> <S-Tab> pumvisible() ? "\<C-p>" : "\<S-Tab>"
" Remap <C-f> and <C-b> for scroll float windows/popups.
if has('nvim-0.4.0') || has('patch-8.2.0750')
nnoremap <silent><nowait><expr> <C-f> coc#float#has_scroll() ? coc#float#scroll(1) : "\<C-f>"
nnoremap <silent><nowait><expr> <C-b> coc#float#has_scroll() ? coc#float#scroll(0) : "\<C-b>"
inoremap <silent><nowait><expr> <C-f> coc#float#has_scroll() ? "\<c-r>=coc#float#scroll(1)\<cr>" : "\<Right>"
inoremap <silent><nowait><expr> <C-b> coc#float#has_scroll() ? "\<c-r>=coc#float#scroll(0)\<cr>" : "\<Left>"
vnoremap <silent><nowait><expr> <C-f> coc#float#has_scroll() ? coc#float#scroll(1) : "\<C-f>"
vnoremap <silent><nowait><expr> <C-b> coc#float#has_scroll() ? coc#float#scroll(0) : "\<C-b>"
endif
'';
}
fzf-vim
{
plugin = iceberg-vim;
config = "colorscheme iceberg";
}
vim-sleuth
coc-json
coc-html
coc-tsserver
neoformat
undotree
{
plugin = vim-jsdoc;
config = ''
let g:jsdoc_formatter = "tsdoc"
let g:typescript_indent_disable = 1
'';
}
];
extraConfig = ''
set background=dark
set termguicolors
set ic
set number
set autoindent
set completeopt=menuone,noinsert,noselect
set shortmess+=c
'';
home.sessionVariables = {
XDG_DATA_DIRS = "$XDG_DATA_DIRS:/var/lib/flatpak/exports/share:$HOME/.local/share/flatpak/exports/share";
};
programs.zsh = {
enable = true;
zplug = {
enable = true;
plugins = [
{ name = "romkatv/powerlevel10k"; tags = [ "as:theme" "depth:1" ]; }
];
};
};
programs.neovim = import ./vim.nix { pkgs = pkgs; };
};
users.users.mae = {
uid = 1000;

57
users/mae/vim.nix Normal file
View File

@ -0,0 +1,57 @@
{ pkgs, ... }:
{
enable = true;
vimdiffAlias = true;
withNodeJs = true;
plugins = with pkgs.vimPlugins; [
{
plugin = coc-nvim;
config = ''
nmap <silent> <F2> <Plug>(coc-rename)
inoremap <expr> <Tab> pumvisible() ? "\<C-n>" : "\<Tab>"
inoremap <expr> <S-Tab> pumvisible() ? "\<C-p>" : "\<S-Tab>"
" Remap <C-f> and <C-b> for scroll float windows/popups.
if has('nvim-0.4.0') || has('patch-8.2.0750')
nnoremap <silent><nowait><expr> <C-f> coc#float#has_scroll() ? coc#float#scroll(1) : "\<C-f>"
nnoremap <silent><nowait><expr> <C-b> coc#float#has_scroll() ? coc#float#scroll(0) : "\<C-b>"
inoremap <silent><nowait><expr> <C-f> coc#float#has_scroll() ? "\<c-r>=coc#float#scroll(1)\<cr>" : "\<Right>"
inoremap <silent><nowait><expr> <C-b> coc#float#has_scroll() ? "\<c-r>=coc#float#scroll(0)\<cr>" : "\<Left>"
vnoremap <silent><nowait><expr> <C-f> coc#float#has_scroll() ? coc#float#scroll(1) : "\<C-f>"
vnoremap <silent><nowait><expr> <C-b> coc#float#has_scroll() ? coc#float#scroll(0) : "\<C-b>"
endif
'';
}
fzf-vim
{
plugin = iceberg-vim;
config = "colorscheme iceberg";
}
vim-sleuth
coc-json
coc-html
coc-tsserver
neoformat
undotree
{
plugin = vim-jsdoc;
config = ''
let g:jsdoc_formatter = "tsdoc"
let g:typescript_indent_disable = 1
'';
}
];
extraConfig = ''
set background=dark
set termguicolors
set ic
set number
set autoindent
set completeopt=menuone,noinsert,noselect
set shortmess+=c
'';
}