-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Reorganize host config Host config got a bit mixed up, as well as having issues like core and core-darwin having unnecessarily similar names, so we regroup into better "bundles" by platform and purpose. * Reorganize home config Sort out home config into bundles for more opaque option selection per host. * Separate nixos-specific and darwin-specific options Right now nixos rejects unfamiliar options and darwin may do the same. For now we separate into different bundles that are included. In the future this could potentially be further sorted out.
- Loading branch information
1 parent
b79b304
commit cb26316
Showing
51 changed files
with
171 additions
and
139 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
imports = [ | ||
./defaults.nix | ||
]; | ||
} |
File renamed without changes.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
imports = [ | ||
./alacritty.nix | ||
./surfingkeys | ||
]; | ||
} |
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions
1
...tuckershea/common/core-darwin/default.nix → home/tuckershea/hosts/elmira/default.nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
{ | ||
imports = [ | ||
./ssh.nix | ||
]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ ... }: | ||
{ | ||
programs.git.extraConfig = { | ||
"gpg \"ssh\"".program = "/Applications/1Password.app/Contents/MacOS/op-ssh-sign"; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,8 @@ | ||
{lib, ...}: { | ||
{ | ||
lib, | ||
pkgs, | ||
... | ||
}: { | ||
programs.git = { | ||
enable = true; | ||
delta.enable = true; | ||
|
@@ -13,7 +17,7 @@ | |
"**/._.DS_Store" | ||
]; | ||
signing = { | ||
key = lib.removeSuffix "\n" (builtins.readFile ../../../../resources/publickeys/id_norepercussions_github.pub); | ||
key = lib.removeSuffix "\n" (builtins.readFile ../../../resources/publickeys/id_norepercussions_github.pub); | ||
signByDefault = true; | ||
}; | ||
userEmail = "[email protected]"; | ||
|
@@ -22,9 +26,6 @@ | |
gpg.format = "ssh"; | ||
core.autocrlf = "input"; | ||
init.defaultBranch = "main"; | ||
|
||
# todo: change this for non-mac systems | ||
"gpg \"ssh\"".program = "/Applications/1Password.app/Contents/MacOS/op-ssh-sign"; | ||
}; | ||
}; | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ inputs, ... }: | ||
{ | ||
imports = [ | ||
inputs.nix-index-database.hmModules.nix-index | ||
]; | ||
|
||
programs.nix-index-database.comma.enable = true; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
programs.ripgrep = { | ||
enable = true; | ||
arguments = [ | ||
"--max-columns=150" | ||
"--smart-case" | ||
]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{lib, ...}: | ||
{ | ||
programs.ssh = { | ||
enable = true; | ||
serverAliveInterval = 30; | ||
|
||
matchBlocks = { | ||
famat = lib.hm.dag.entryBefore ["*"] { | ||
hostname = "ssh.pythonanywhere.com"; | ||
user = "famat"; | ||
identitiesOnly = true; | ||
}; | ||
andrew = lib.hm.dag.entryBefore ["*"] { | ||
hostname = "unix.andrew.cmu.edu"; | ||
user = "tshea"; | ||
}; | ||
}; | ||
|
||
extraConfig = lib.mkMerge [ | ||
"GSSAPIAuthentication yes" | ||
"GSSAPIDelegateCredentials yes" | ||
]; | ||
}; | ||
|
||
home.file.".ssh/.keep".text = "Managed by home-manager"; | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
3 changes: 2 additions & 1 deletion
3
hosts/common/core-darwin/default.nix → hosts/common/darwin/default.nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
{ | ||
imports = [ | ||
./auto-font-smoothing.nix | ||
./font-smoothing.nix | ||
./keyboard.nix | ||
./nix.nix | ||
]; | ||
} |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
nix.settings.extra-platforms = ["x86_64-darwin" "aarch64-darwin"]; | ||
services.nix-daemon.enable = true; | ||
|
||
nix.gc.interval = [{ | ||
Hour = 3; | ||
Minute = 15; | ||
Weekday = 1; | ||
}]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ ... }: { | ||
imports = [ | ||
./fonts.nix | ||
]; | ||
} |
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions
3
hosts/common/core-nixos/default.nix → hosts/common/nixos/default.nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ ... }: | ||
{ | ||
nix.gc.dates = "Mon *-*-* 03:15:00"; | ||
} |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
Oops, something went wrong.