restructured
This commit is contained in:
@@ -21,7 +21,6 @@
|
||||
imports = [
|
||||
./nixosModules/options.nix
|
||||
./home.nix
|
||||
./git.nix
|
||||
inputs._1password-shell-plugins.hmModules.default
|
||||
];
|
||||
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
|
||||
|
||||
58
home.nix
58
home.nix
@@ -1,9 +1,11 @@
|
||||
{ config, pkgs, lib, inputs, ... }:
|
||||
|
||||
{
|
||||
# imports = [
|
||||
imports = [
|
||||
./homeManagerModules/git.nix
|
||||
./homeManagerModules/shell.nix
|
||||
# inputs._1password-shell-plugins.hmModules.default
|
||||
# ];
|
||||
];
|
||||
# Home Manager needs a bit of information about you and the paths it should
|
||||
# manage.
|
||||
home.username = config.user;
|
||||
@@ -19,7 +21,7 @@
|
||||
busybox
|
||||
gnugrep
|
||||
dig
|
||||
eza
|
||||
# eza
|
||||
gdu
|
||||
lazygit
|
||||
btop
|
||||
@@ -28,10 +30,6 @@
|
||||
nix flake update --flake ~/.config/home-manager
|
||||
nix run home-manager -- switch --flake ~/.config/home-manager
|
||||
'')
|
||||
(writeShellScriptBin "test-hm" ''
|
||||
echo "${config.profile}"
|
||||
'')
|
||||
|
||||
# # It is sometimes useful to fine-tune packages, for example, by applying
|
||||
# # overrides. You can do that directly here, just don't forget the
|
||||
# # parentheses. Maybe you want to install Nerd Fonts with a limited number of
|
||||
@@ -77,27 +75,27 @@
|
||||
# Let Home Manager install and manage itself.
|
||||
programs.home-manager.enable = true;
|
||||
|
||||
programs.zsh = lib.mkIf config.shell {
|
||||
enable = true;
|
||||
enableCompletion = true;
|
||||
autosuggestion.enable = true;
|
||||
syntaxHighlighting.enable = true;
|
||||
oh-my-zsh = {
|
||||
enable = true;
|
||||
theme = "risto";
|
||||
plugins = [
|
||||
"sudo"
|
||||
"dotenv"
|
||||
"git"
|
||||
"ssh"
|
||||
"ssh-agent"
|
||||
] ++ lib.optional config._1password "1password";
|
||||
};
|
||||
shellAliases.ls = "${pkgs.eza}/bin/eza -lgos type --no-time";
|
||||
# initContent = lib.mkIf config._1password ''
|
||||
# source ${config.home.homeDirectory}/.config/op/plugins.sh
|
||||
# '';
|
||||
};
|
||||
# programs.zsh = lib.mkIf config.shell {
|
||||
# enable = true;
|
||||
# enableCompletion = true;
|
||||
# autosuggestion.enable = true;
|
||||
# syntaxHighlighting.enable = true;
|
||||
# oh-my-zsh = {
|
||||
# enable = true;
|
||||
# theme = "risto";
|
||||
# plugins = [
|
||||
# "sudo"
|
||||
# "dotenv"
|
||||
# "git"
|
||||
# "ssh"
|
||||
# "ssh-agent"
|
||||
# ] ++ lib.optional config._1password "1password";
|
||||
# };
|
||||
# shellAliases.ls = "${pkgs.eza}/bin/eza -lgos type --no-time";
|
||||
# # initContent = lib.mkIf config._1password ''
|
||||
# # source ${config.home.homeDirectory}/.config/op/plugins.sh
|
||||
# # '';
|
||||
# };
|
||||
|
||||
programs.ssh = lib.mkIf config.ssh {
|
||||
enable = true;
|
||||
@@ -115,6 +113,10 @@
|
||||
hostname = "192.168.1.130";
|
||||
user = "root";
|
||||
};
|
||||
"nix-test" = {
|
||||
hostname = "192.168.1.36";
|
||||
user = "root";
|
||||
};
|
||||
})
|
||||
(lib.mkIf (config.profile == "work") {
|
||||
"ubuntu-nvidia" = {
|
||||
|
||||
30
homeManagerModules/shell.nix
Normal file
30
homeManagerModules/shell.nix
Normal file
@@ -0,0 +1,30 @@
|
||||
{ config, pkgs, lib, inputs, ... }:
|
||||
{
|
||||
home.packages = with pkgs; [
|
||||
eza
|
||||
(writeShellScriptBin "test-pkgs" ''
|
||||
echo "Hello from ~/.config/home-manager/home.nix!"
|
||||
'')
|
||||
];
|
||||
programs.zsh = lib.mkIf config.shell {
|
||||
enable = true;
|
||||
enableCompletion = true;
|
||||
autosuggestion.enable = true;
|
||||
syntaxHighlighting.enable = true;
|
||||
oh-my-zsh = {
|
||||
enable = true;
|
||||
theme = "risto";
|
||||
plugins = [
|
||||
"sudo"
|
||||
"dotenv"
|
||||
"git"
|
||||
"ssh"
|
||||
"ssh-agent"
|
||||
] ++ lib.optional config._1password "1password";
|
||||
};
|
||||
shellAliases.ls = "${pkgs.eza}/bin/eza -lgos type --no-time";
|
||||
# initContent = lib.mkIf config._1password ''
|
||||
# source ${config.home.homeDirectory}/.config/op/plugins.sh
|
||||
# '';
|
||||
};
|
||||
}
|
||||
3
personal_keys
Normal file
3
personal_keys
Normal file
@@ -0,0 +1,3 @@
|
||||
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDIaHS9CLiDc6T1tja0fBwwv5qc6iwuckWN6w8MNo5yiR8LPWyrfueowNJkL4HMqu6OEuggtdybGw1Do4sW5o+toHCyWfZf3khI1l15opPXuVpD4CWED+SpJiZ0wBgRaCaWhfxLI+s4JOhjOO2OjiClPX3HfxIHyTpRiR78lOMcIieHSnzrAV2MatYKf6lL2ckOsIPwxo/OVM+1ljjX+HLq9IxGUCpWOnF4nF1rq3gKL2JUh2KsrgrzE3NB7EFuqKm8F0tF2rG3JjSvlwox0h06drKD02lpZWXPOBRlcyFDpNXymmc2bpG0S2Bbj5g+pqNBB0jO0h3kzWvYYqrtU/ElObg1cXhyi0PFOhhptlbhbK0Ao8B+pAbSZ661nMT3jpRWLVbnJrRFnXXdjX08r5eseQ3k4CFpv+g64n7yg3IMo9f8gA9P/hOexR+qu5AQ1Ad/tvkp6pPXnR/zsUnbe4p2A9MaNJm4E1zxbs5VGlXynNikXwDL+spkrnjwdfUULTk= john@JOHN-PC
|
||||
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFn5ilhqaeDsOWSk7y29se2NvxGm8djlfL3RGLokj0q6 john@john-p14s
|
||||
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDHh9SBuxU2dOJHnpGZAE4cwe0fXcTBBAx+JmRsmIX+Tk8zooeM32vbNxxSXiZNpBGH5wzHNb534dWexGGG3sOaONmcL7SCoPIvaAdnIn5VsiznerLrzppSbx3Qn8eyF97WAGCcOcIUNmTIDDx1m6zG762WQnoaUEy0Ul5IR7ET5GQxP3p5Qwx8yqfixKDwarvV421sUIxYt9gee31jS9jcI3MFd6EL57hWle95Z8BGpR/Q7sXDBTZQWMZauh5NPwLMZS7k3bHgxXZ7WNOw/J/yts1ckBbvIFJSRNnMuWD0oGnDTL6aivGi+Eiswp0fpKzYGzquB3/wr3VU4G1JcMM5 JuiceSSH
|
||||
Reference in New Issue
Block a user