initial nixos flake setup

This commit is contained in:
aditya
2026-05-09 03:23:16 +05:30
commit 0b65bb0b7f
10 changed files with 319 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
{...}:
{
home.username = "aditya";
home.homeDirectory = "/home/aditya";
home.stateVersion = "25.11";
imports = [
./programs/gh.nix
./programs/git.nix
./programs/zed.nix
];
}
+12
View File
@@ -0,0 +1,12 @@
{...}:
{
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
backupFileExtension = "aditya";
users = {
aditya = import ./aditya.nix;
};
};
}
+13
View File
@@ -0,0 +1,13 @@
{...}:
{
programs.gh = {
enable = true;
gitCredentialHelper = {
enable = true;
};
settings = {
git_protocol = "https";
};
};
}
+17
View File
@@ -0,0 +1,17 @@
{...}:
{
programs.git = {
enable = true;
settings = {
user = {
name = "aditya";
email = "dedomil@tuta.io";
};
};
# signing = {
# key = null;
# signByDefault = true;
# };
};
}
+40
View File
@@ -0,0 +1,40 @@
{...}:
{
programs.zed-editor = {
enable = true;
extensions = ["crimson-theme"];
userSettings = {
ui_font_size = 20;
ui_font_family = "DejaVu Sans Mono";
buffer_font_size = 20;
buffer_font_family = "DejaVu Sans Mono";
autosave = {
after_delay = { milliseconds = 1000; };
};
colorize_brackets = true;
telemetry = {
diagnostics = false;
metrics = false;
};
project_panel = {
diagnostic_badges = true;
dock = "right";
};
collaboration_panel = {
dock = "right";
};
outline_panel = {
dock = "right";
};
git_panel = {
dock = "right";
};
theme = {
mode = "system";
light = "Crimson Light";
dark = "Crimson Dark";
};
};
};
}