Compare commits
11 commits
2ef6714753
...
ff3df36198
Author | SHA1 | Date | |
---|---|---|---|
ff3df36198 | |||
|
09b6e25b2b | ||
f327c0628a | |||
d35639285f | |||
22f42ec745 | |||
66101edde5 | |||
a8ce6936a7 | |||
5b27c6e0dc | |||
8c8d0fbb56 | |||
88e38e36ec | |||
d5b6ec3daf |
9 changed files with 90 additions and 28 deletions
38
flake.lock
generated
38
flake.lock
generated
|
@ -49,11 +49,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1734088167,
|
"lastModified": 1736864502,
|
||||||
"narHash": "sha256-snPBgTqwn3FPZVdFC5yt7Bnk3squim1vZOZ8CObWykk=",
|
"narHash": "sha256-ItkIZyebGvNH2dK9jVGzJHGPtb6BSWLN8Gmef16NeY0=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "disko",
|
"repo": "disko",
|
||||||
"rev": "65a441502c9382d41ada1adbc9bd31d6c9b00fe2",
|
"rev": "0141aabed359f063de7413f80d906e1d98c0c123",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -248,11 +248,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1736508663,
|
"lastModified": 1736785676,
|
||||||
"narHash": "sha256-ZOaGwa+WnB7Zn3YXimqjmIugAnHePdXCmNu+AHkq808=",
|
"narHash": "sha256-TY0jUwR3EW0fnS0X5wXMAVy6h4Z7Y6a3m+Yq++C9AyE=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "2532b500c3ed2b8940e831039dcec5a5ea093afc",
|
"rev": "fc52a210b60f2f52c74eac41a8647c1573d2071d",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -360,16 +360,16 @@
|
||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1736523798,
|
"lastModified": 1736966948,
|
||||||
"narHash": "sha256-Xb8mke6UCYjge9kPR9o4P1nVrhk7QBbKv3xQ9cj7h2s=",
|
"narHash": "sha256-j9ysmoP7UJUEZdA1/Gjqa8zsx5gaq35PxRsaTBwgoWk=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "130595eba61081acde9001f43de3248d8888ac4a",
|
"rev": "69b5cebd7cc197ee5885fa694465039c42a5c8dc",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"ref": "nixos-unstable",
|
"ref": "nixos-unstable-small",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
|
@ -392,11 +392,11 @@
|
||||||
},
|
},
|
||||||
"nixpkgs-garage": {
|
"nixpkgs-garage": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1736657901,
|
"lastModified": 1736921030,
|
||||||
"narHash": "sha256-KpbFF8d5cqcBF7+m5fXDcPn+ADg3kURbX49JGx18NXU=",
|
"narHash": "sha256-A7knAvBOwoM5X7oNdIOKvuXYtXJpuR4O8iKHIk8EwOI=",
|
||||||
"owner": "cything",
|
"owner": "cything",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "616be0a7b830a10d0874d569aabd40034c9151aa",
|
"rev": "97f27249297bf5fbc563014ae9d4884dee27f1e0",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -437,11 +437,11 @@
|
||||||
"treefmt-nix": "treefmt-nix"
|
"treefmt-nix": "treefmt-nix"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1736715511,
|
"lastModified": 1736964246,
|
||||||
"narHash": "sha256-5YAiZ3wrEJ/fzFoCwNf14xqfRTvgdcnl/+y0vye3Y6A=",
|
"narHash": "sha256-gb3ujURRlI/D5Jc8PUDOpJr8RyrTwnDDIDtnQK4upso=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "nixvim",
|
"repo": "nixvim",
|
||||||
"rev": "35d6c12626f9895cd5d8ccf5d19c3d00de394334",
|
"rev": "5b068e7f8f2b6beaa1fafe0c8b3604b63bcccc2d",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -545,11 +545,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1736515725,
|
"lastModified": 1736808430,
|
||||||
"narHash": "sha256-4P99yL8vGehwzytkpP87eklBePt6aqeEC5JFsIzhfUs=",
|
"narHash": "sha256-wlgdf/n7bJMLBheqt1jmPoxJFrUP6FByKQFXuM9YvIk=",
|
||||||
"owner": "Mic92",
|
"owner": "Mic92",
|
||||||
"repo": "sops-nix",
|
"repo": "sops-nix",
|
||||||
"rev": "f214c1b76c347a4e9c8fb68c73d4293a6820d125",
|
"rev": "553c7cb22fed19fd60eb310423fdc93045c51ba8",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
11
flake.nix
11
flake.nix
|
@ -2,7 +2,7 @@
|
||||||
description = "cy's flake";
|
description = "cy's flake";
|
||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable-small";
|
||||||
sops-nix = {
|
sops-nix = {
|
||||||
url = "github:Mic92/sops-nix";
|
url = "github:Mic92/sops-nix";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
@ -165,6 +165,15 @@
|
||||||
inputs.nixvim.homeManagerModules.nixvim
|
inputs.nixvim.homeManagerModules.nixvim
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
"codespace@codespace" = home-manager.lib.homeManagerConfiguration {
|
||||||
|
pkgs = pkgsFor.x86_64-linux;
|
||||||
|
extraSpecialArgs = { inherit inputs outputs; };
|
||||||
|
modules = [
|
||||||
|
./home/yt/codespace.nix
|
||||||
|
inputs.nixvim.homeManagerModules.nixvim
|
||||||
|
];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -95,8 +95,8 @@
|
||||||
"<C-h>" = "cmp.mapping.abort()";
|
"<C-h>" = "cmp.mapping.abort()";
|
||||||
"<C-n>" = "cmp.mapping.select_next_item()";
|
"<C-n>" = "cmp.mapping.select_next_item()";
|
||||||
"<C-p>" = "cmp.mapping.select_prev_item()";
|
"<C-p>" = "cmp.mapping.select_prev_item()";
|
||||||
"<C-d>" = "cmp.mapping.scroll_docs(-4)";
|
"<C-u>" = "cmp.mapping.scroll_docs(-4)";
|
||||||
"<C-u>" = "cmp.mapping.scroll_docs(4)";
|
"<C-d>" = "cmp.mapping.scroll_docs(4)";
|
||||||
"<C-k>" = ''
|
"<C-k>" = ''
|
||||||
cmp.mapping(function(fallback)
|
cmp.mapping(function(fallback)
|
||||||
if cmp.visible() then
|
if cmp.visible() then
|
||||||
|
@ -147,7 +147,7 @@
|
||||||
servers = {
|
servers = {
|
||||||
bashls.enable = true;
|
bashls.enable = true;
|
||||||
lua_ls.enable = true;
|
lua_ls.enable = true;
|
||||||
nil_ls.enable = true;
|
nixd.enable = true;
|
||||||
rust_analyzer = {
|
rust_analyzer = {
|
||||||
enable = true;
|
enable = true;
|
||||||
installRustc = true;
|
installRustc = true;
|
||||||
|
@ -163,14 +163,20 @@
|
||||||
plugins.fzf-lua = {
|
plugins.fzf-lua = {
|
||||||
enable = true;
|
enable = true;
|
||||||
keymaps = {
|
keymaps = {
|
||||||
"<leader>ff" = "git_files";
|
"<leader>ff" = "files";
|
||||||
"<leader>fg" = "live_grep";
|
"<leader>fg" = "live_grep";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
plugins.neo-tree = {
|
plugins.neo-tree = {
|
||||||
enable = true;
|
enable = true;
|
||||||
closeIfLastWindow = true;
|
buffers.followCurrentFile.enabled = true;
|
||||||
|
window.width = 30;
|
||||||
|
};
|
||||||
|
|
||||||
|
plugins.gitsigns = {
|
||||||
|
enable = true;
|
||||||
|
settings.current_line_blame = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
plugins.cmp-buffer.enable = true;
|
plugins.cmp-buffer.enable = true;
|
||||||
|
@ -182,6 +188,8 @@
|
||||||
plugins.nvim-autopairs.enable = true;
|
plugins.nvim-autopairs.enable = true;
|
||||||
plugins.rainbow-delimiters.enable = true;
|
plugins.rainbow-delimiters.enable = true;
|
||||||
plugins.web-devicons.enable = true;
|
plugins.web-devicons.enable = true;
|
||||||
plugins.gitsigns.enable = true;
|
plugins.auto-save.enable = true;
|
||||||
|
plugins.indent-blankline.enable = true;
|
||||||
|
plugins.undotree.enable = true;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
17
home/vscode.nix
Normal file
17
home/vscode.nix
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
{pkgs, ...}: {
|
||||||
|
programs.vscode = {
|
||||||
|
enable = true;
|
||||||
|
package = pkgs.vscodium;
|
||||||
|
enableUpdateCheck = false;
|
||||||
|
enableExtensionUpdateCheck = false;
|
||||||
|
mutableExtensionsDir = false;
|
||||||
|
extensions = with pkgs.vscode-extensions; [
|
||||||
|
vscodevim.vim
|
||||||
|
jnoortheen.nix-ide # nix language support
|
||||||
|
editorconfig.editorconfig # editorconfig
|
||||||
|
dracula-theme.theme-dracula # color scheme
|
||||||
|
tomoki1207.pdf # pdf viewer
|
||||||
|
yzhang.markdown-all-in-one # markdown tools
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
22
home/yt/codespace.nix
Normal file
22
home/yt/codespace.nix
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
{
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
./common.nix
|
||||||
|
];
|
||||||
|
home = {
|
||||||
|
username = "codespace";
|
||||||
|
homeDirectory = "/home/codespace";
|
||||||
|
stateVersion = "24.05";
|
||||||
|
};
|
||||||
|
programs.home-manager.enable = true;
|
||||||
|
|
||||||
|
systemd.user.startServices = "sd-switch";
|
||||||
|
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
foot.terminfo
|
||||||
|
attic-client
|
||||||
|
];
|
||||||
|
}
|
|
@ -30,7 +30,7 @@
|
||||||
programs.git = {
|
programs.git = {
|
||||||
enable = true;
|
enable = true;
|
||||||
userName = "cy";
|
userName = "cy";
|
||||||
userEmail = "hi@cything.io";
|
userEmail = "cy@cy7.sh";
|
||||||
delta = {
|
delta = {
|
||||||
enable = true;
|
enable = true;
|
||||||
options = {
|
options = {
|
||||||
|
|
|
@ -138,4 +138,9 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
services.gnome-keyring.enable = true;
|
services.gnome-keyring.enable = true;
|
||||||
|
|
||||||
|
programs.direnv = {
|
||||||
|
enable = true;
|
||||||
|
nix-direnv.enable = true;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -116,4 +116,5 @@
|
||||||
programs.zoxide.enableZshIntegration = true;
|
programs.zoxide.enableZshIntegration = true;
|
||||||
programs.eza.enableZshIntegration = true;
|
programs.eza.enableZshIntegration = true;
|
||||||
programs.nix-index.enableZshIntegration = false;
|
programs.nix-index.enableZshIntegration = false;
|
||||||
|
programs.direnv.enableZshIntegration = false;
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
HTTP_PORT = 3000;
|
HTTP_PORT = 3000;
|
||||||
HTTP_ADDR = "127.0.0.1";
|
HTTP_ADDR = "127.0.0.1";
|
||||||
DOMAIN = "git.cy7.sh";
|
DOMAIN = "git.cy7.sh";
|
||||||
LANDING_PAGE = "/cy";
|
LANDING_PAGE = "explore";
|
||||||
};
|
};
|
||||||
session.COOKIE_SECURE = true;
|
session.COOKIE_SECURE = true;
|
||||||
service.DISABLE_REGISTRATION = true;
|
service.DISABLE_REGISTRATION = true;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue