restructured
This commit is contained in:
60
home.nix
60
home.nix
@@ -1,9 +1,11 @@
|
||||
{ config, pkgs, lib, inputs, ... }:
|
||||
|
||||
{
|
||||
# imports = [
|
||||
# inputs._1password-shell-plugins.hmModules.default
|
||||
# ];
|
||||
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" = {
|
||||
|
||||
Reference in New Issue
Block a user