initial nixos flake setup
This commit is contained in:
@@ -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
|
||||
];
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
{...}:
|
||||
|
||||
{
|
||||
home-manager = {
|
||||
useGlobalPkgs = true;
|
||||
useUserPackages = true;
|
||||
backupFileExtension = "aditya";
|
||||
users = {
|
||||
aditya = import ./aditya.nix;
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
{...}:
|
||||
|
||||
{
|
||||
programs.gh = {
|
||||
enable = true;
|
||||
gitCredentialHelper = {
|
||||
enable = true;
|
||||
};
|
||||
settings = {
|
||||
git_protocol = "https";
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
{...}:
|
||||
|
||||
{
|
||||
programs.git = {
|
||||
enable = true;
|
||||
settings = {
|
||||
user = {
|
||||
name = "aditya";
|
||||
email = "dedomil@tuta.io";
|
||||
};
|
||||
};
|
||||
# signing = {
|
||||
# key = null;
|
||||
# signByDefault = true;
|
||||
# };
|
||||
};
|
||||
}
|
||||
@@ -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";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user