-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
137 changed files
with
1,954 additions
and
1,545 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,6 @@ | ||
{ pkgs, config, ... }: | ||
{ | ||
system.activationScripts = { | ||
# https://github.com/colemickens/nixcfg/blob/main/mixins/ssh.nix | ||
# symlink root's ssh config to ours | ||
# to fix nix-daemon's ability to remote build since it sshs from the root account | ||
root_ssh_config = | ||
let | ||
inherit (config.modules.system) mainUser; | ||
|
||
sshDir = "${config.users.users.${mainUser}.home}/.ssh"; | ||
in | ||
{ | ||
text = '' | ||
( | ||
# symlink root ssh config to ours so daemon can use our agent/keys/etc... | ||
mkdir -p /root/.ssh | ||
ln -sf ${sshDir}/config /root/.ssh/config | ||
ln -sf ${sshDir}/known_hosts /root/.ssh/known_hosts | ||
ln -sf ${sshDir}/known_hosts /root/.ssh/known_hosts | ||
) | ||
''; | ||
deps = [ ]; | ||
}; | ||
|
||
diff = { | ||
supportsDryActivation = true; | ||
text = '' | ||
if [[ -e /run/current-system ]]; then | ||
echo "=== diff to current-system ===" | ||
${pkgs.nvd}/bin/nvd --nix-bin-dir='${config.nix.package}/bin' diff /run/current-system "$systemConfig" | ||
echo "=== end of the system diff ===" | ||
fi | ||
''; | ||
}; | ||
}; | ||
imports = [ | ||
./diff.nix | ||
./root-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,13 @@ | ||
{ pkgs, config, ... }: | ||
{ | ||
system.activationScripts.diff = { | ||
supportsDryActivation = true; | ||
text = '' | ||
if [[ -e /run/current-system ]]; then | ||
echo "=== diff to current-system ===" | ||
${pkgs.nvd}/bin/nvd --nix-bin-dir='${config.nix.package}/bin' diff /run/current-system "$systemConfig" | ||
echo "=== end of the system diff ===" | ||
fi | ||
''; | ||
}; | ||
} |
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,24 @@ | ||
{ config, ... }: | ||
{ | ||
# https://github.com/colemickens/nixcfg/blob/main/mixins/ssh.nix | ||
# symlink root's ssh config to ours | ||
# to fix nix-daemon's ability to remote build since it sshs from the root account | ||
system.activationScripts.root_ssh_config = | ||
let | ||
inherit (config.modules.system) mainUser; | ||
|
||
sshDir = "${config.users.users.${mainUser}.home}/.ssh"; | ||
in | ||
{ | ||
text = '' | ||
( | ||
# symlink root ssh config to ours so daemon can use our agent/keys/etc... | ||
mkdir -p /root/.ssh | ||
ln -sf ${sshDir}/config /root/.ssh/config | ||
ln -sf ${sshDir}/known_hosts /root/.ssh/known_hosts | ||
ln -sf ${sshDir}/known_hosts /root/.ssh/known_hosts | ||
) | ||
''; | ||
deps = [ ]; | ||
}; | ||
} |
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,21 +1,15 @@ | ||
{ config, ... }: | ||
{ | ||
# variables that I want to set globally on all systems | ||
environment.variables = { | ||
EDITOR = "nvim"; | ||
VISUAL = "vscode"; | ||
SUDO_EDITOR = "nvim"; | ||
|
||
environment = { | ||
# the below can be done for faster shell response time but it can break things, and it did | ||
# binsh = "${pkgs.dash}/bin/dash"; | ||
SYSTEMD_PAGERSECURE = "true"; | ||
PAGER = "less -FR"; | ||
MANPAGER = "nvim +Man!"; | ||
|
||
variables = { | ||
EDITOR = "nvim"; | ||
VISUAL = "vscode"; | ||
SUDO_EDITOR = "nvim"; | ||
|
||
SYSTEMD_PAGERSECURE = "true"; | ||
PAGER = "less -FR"; | ||
MANPAGER = "nvim +Man!"; | ||
|
||
FLAKE = "${config.modules.environment.flakePath}"; | ||
}; | ||
FLAKE = "${config.modules.environment.flakePath}"; | ||
}; | ||
} |
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 |
---|---|---|
|
@@ -2,8 +2,6 @@ | |
imports = [ | ||
./device | ||
./programs | ||
./themes | ||
./services | ||
./system | ||
./environment | ||
]; | ||
|
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.
Oops, something went wrong.