feat: NixOS | modular nixos config
This commit is contained in:
@@ -1,6 +1,4 @@
|
||||
{ font, ... }:
|
||||
|
||||
{
|
||||
{font, ...}: {
|
||||
programs.alacritty = {
|
||||
enable = true;
|
||||
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
{...}: {
|
||||
programs.direnv = {
|
||||
enable = true;
|
||||
enableZshIntegration = true;
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
{pkgs, ...}: {
|
||||
programs.firefox = {
|
||||
enable = true;
|
||||
package = pkgs.firefox.override {
|
||||
|
||||
@@ -4,9 +4,7 @@
|
||||
userName,
|
||||
userEmail,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
}: {
|
||||
programs.git = {
|
||||
package = pkgs.gitAndTools.gitFull;
|
||||
enable = true;
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
{...}: {
|
||||
programs.neovim = {
|
||||
enable = true;
|
||||
defaultEditor = true;
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
{ ... }:
|
||||
|
||||
let
|
||||
{...}: let
|
||||
onePassPath = "~/.1password/agent.sock";
|
||||
in
|
||||
{
|
||||
in {
|
||||
programs.ssh = {
|
||||
enable = true;
|
||||
extraConfig = "IdentityAgent ${onePassPath}";
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
{...}: {
|
||||
programs.starship.enable = true;
|
||||
}
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
{ config, ... }:
|
||||
|
||||
{
|
||||
{config, ...}: {
|
||||
programs.zsh = {
|
||||
enable = true;
|
||||
enableCompletion = true;
|
||||
|
||||
@@ -72,7 +72,7 @@ lspconfig.nil_ls.setup {
|
||||
['nil'] = {
|
||||
testSetting = 42,
|
||||
formatting = {
|
||||
command = { "nixfmt" },
|
||||
command = { "alejandra" },
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
@@ -5,15 +5,13 @@
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
}: let
|
||||
# Be sure to actually install the font first!
|
||||
font = "ComicCodeLigatures";
|
||||
username = "shahab";
|
||||
email = "shahab@dogar.dev";
|
||||
fullName = "Shahab Dogar";
|
||||
in
|
||||
{
|
||||
in {
|
||||
# You can import other home-manager modules here
|
||||
imports = [
|
||||
# Custom import to configure font
|
||||
|
||||
Reference in New Issue
Block a user