Compare commits

...

8 Commits

9 changed files with 103 additions and 12 deletions

View File

@ -0,0 +1,48 @@
{
"nodes": {
"home-manager": {
"inputs": {
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1756991914,
"narHash": "sha256-4ve/3ah5H/SpL2m3qmZ9GU+VinQYp2MN1G7GamimTds=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "b08f8737776f10920c330657bee8b95834b7a70f",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "home-manager",
"type": "github"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1756787288,
"narHash": "sha256-rw/PHa1cqiePdBxhF66V7R+WAP8WekQ0mCDG4CFqT8Y=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "d0fc30899600b9b3466ddb260fd83deb486c32f1",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {
"inputs": {
"home-manager": "home-manager",
"nixpkgs": "nixpkgs"
}
}
},
"root": "root",
"version": 7
}

View File

@ -0,0 +1,30 @@
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
nixgl.url = "github:nix-community/nixGL";
};
outputs = { nixpkgs, home-manager, nixgl, ... }:
let
lib = nixpkgs.lib;
system = "x86_64-linux";
pkgs = import nixpkgs {
inherit system;
overlays = [ nixgl.overlay ];
config.allowUnfree = true;
};
in {
homeConfigurations = {
work = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
extraSpecialArgs = {
inherit nixgl;
};
modules = [ ./hosts/work ];
};
};
};
}

View File

@ -0,0 +1,17 @@
{ pkgs, config, nixgl, ... }:
{
nixGL = {
packages = nixgl.packages;
defaultWrapper = "mesa";
};
home.username = "hektor";
home.homeDirectory = "/home/hektor";
home.stateVersion = "25.05";
home.packages = import ./packages.nix {
inherit pkgs;
inherit config;
};
}

View File

@ -0,0 +1,3 @@
{ pkgs, config, ... }:
with pkgs; [ ]

1
.config/nix/nix.conf Normal file
View File

@ -0,0 +1 @@
experimental-features = nix-command flakes

View File

@ -3,6 +3,9 @@ vim.filetype.add({
[".lintstagedrc"] = "json", [".lintstagedrc"] = "json",
}, },
pattern = { pattern = {
["tsconfig.*.json"] = "jsonc",
[".*/%.vscode/.*%.json"] = "jsonc",
[".*/%.ssh/config%.d/.*"] = "sshconfig", [".*/%.ssh/config%.d/.*"] = "sshconfig",
["%.env.*"] = "dotenv",
}, },
}) })

View File

@ -69,7 +69,7 @@
abbrevCommit = true abbrevCommit = true
[credential "https://github.com"] [credential "https://github.com"]
helper = !/usr/bin/gh auth git-credential helper = !gh auth git-credential
[merge] [merge]
tool = nvimdiff tool = nvimdiff

View File

@ -3,20 +3,12 @@
" Plug setup {{{ " Plug setup {{{
call plug#begin() call plug#begin()
Plug 'tpope/vim-commentary'
Plug 'machakann/vim-sandwich' Plug 'machakann/vim-sandwich'
Plug 'Shougo/context_filetype.vim' Plug 'Shougo/context_filetype.vim'
Plug 'editorconfig/editorconfig-vim' Plug 'editorconfig/editorconfig-vim'
Plug 'honza/vim-snippets' Plug 'honza/vim-snippets'
Plug 'chrisbra/unicode.vim' Plug 'chrisbra/unicode.vim'
Plug 'ap/vim-css-color' Plug 'ap/vim-css-color'
" JS and TypeScript
Plug 'pangloss/vim-javascript', { 'for': ['javascript', 'javascript.jsx'] }
Plug 'leafgarland/typescript-vim', { 'for': ['typescript', 'typescript.tsx'] }
Plug 'peitalin/vim-jsx-typescript', { 'for': ['typescript.tsx'] }
Plug 'evanleck/vim-svelte', {'branch': 'main'}
" JSON with comments
Plug 'neoclide/jsonc.vim'
" Jupyter " Jupyter
Plug 'quarto-dev/quarto-vim' Plug 'quarto-dev/quarto-vim'
" LaTeX " LaTeX

View File

@ -1,3 +0,0 @@
" JSONC (see https://github.com/neoclide/jsonc.vim/pull/9")
au BufNewFile,BufRead */.vscode/*.json setlocal filetype=jsonc