Skip to content

Commit

Permalink
settings n stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
henrikvtcodes committed Jan 14, 2025
1 parent 1a2c0a4 commit d73d155
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 49 deletions.
6 changes: 3 additions & 3 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
{
"nix.enableLanguageServer": true,
"nix.formatterPath": ["nix", "fmt", "--", "-"],
"nix.formatterPath": ["nix", "fmt", "--", "--"],
"[nix]": {
"editor.defaultFormatter": "jnoortheen.nix-ide",
"editor.formatOnSave": false,
"editor.formatOnSave": true,
"editor.formatOnPaste": false
},
"nix.serverPath": "nixd",
"nix.serverSettings": {
"nixd": {
"formatting": {
// This is the default if ommited.
"command": ["nix", "fmt", "--", "-"]
"command": ["nix", "fmt", "--", "--"]
},
"options": {
"nixos": {
Expand Down
4 changes: 2 additions & 2 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

29 changes: 11 additions & 18 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,6 @@
description = "nix configuration for my servers + other stuff";

inputs = {
# Required for nix to recognize the git submodule as a valid nix module
# secrets = {
# url = "path:secrets"; # the submodule is in the ./subproject dir
# flake = false;
# };

nixpkgs = {
url = "github:nixos/nixpkgs/nixos-24.11";
};
Expand All @@ -17,9 +11,6 @@
inputs.nixpkgs.follows = "nixpkgs";
};

nix-homebrew.url = "github:zhaofengli-wip/nix-homebrew";

# Core tools: home manager, secrets, disk partitioning, deployment
home-manager = {
url = "github:nix-community/home-manager/release-24.11";
inputs.nixpkgs.follows = "nixpkgs";
Expand Down Expand Up @@ -48,6 +39,8 @@
alejandra = {
url = "github:kamadorueda/alejandra/3.1.0";
};

nix-homebrew.url = "github:zhaofengli/nix-homebrew";
};

outputs = {
Expand All @@ -59,7 +52,6 @@
darwin,
nil-lsp,
home-manager,
alejandra,
nix-homebrew,
...
} @ inputs: let
Expand All @@ -77,9 +69,13 @@
});

deployPkgs = forEachSupportedSystem (
{pkgs, ...}:
{
pkgs,
system,
...
}:
import nixpkgs {
inherit (pkgs) system;
inherit system;
overlays = [
deploy-rs.overlay # or deploy-rs.overlays.default
(self: super: {
Expand All @@ -105,12 +101,9 @@
);

# Standard formatter for this flake
formatter = forEachSupportedSystem ({
pkgs,
system,
...
}:
pkgs.alejandra);
formatter =
forEachSupportedSystem ({pkgs, ...}:
pkgs.alejandra);

# Config for my macbook (only used to set up my terminal)
darwinConfigurations.pepacton = darwin.lib.darwinSystem rec {
Expand Down
26 changes: 0 additions & 26 deletions home/henrikvt/home.nix
Original file line number Diff line number Diff line change
Expand Up @@ -121,32 +121,6 @@
s = "status -sb";
l = "log --all --graph --decorate --oneline";
};
# extraConfig = ''
# [init]
# defaultBranch = main

# [color]
# ui = auto

# [color "diff"]
# meta = white bold
# frag = cyan bold
# old = red bold
# new = green bold

# [core]
# editor = vim
# excludesfile = ~/.gitignore
# attributesfile = ~/.gitattributes
# ignorecase = false
# compression = 0

# [pull]
# rebase = false

# [protocol "file"]
# allow = always
# '';
extraConfig = {
init.defaultBranch = "main";
color.ui = "auto";
Expand Down

0 comments on commit d73d155

Please sign in to comment.