Improved zsh and migrate ssh
This commit is contained in:
@@ -82,30 +82,22 @@
|
||||
|
||||
# Enable touchpad support (enabled default in most desktopManager).
|
||||
# services.xserver.libinput.enable = true;
|
||||
|
||||
# Define a user account. Don't forget to set a password with ‘passwd’.
|
||||
# users.users.mbessette = {
|
||||
# isNormalUser = true;
|
||||
# description = "Matthew Bessette";
|
||||
# extraGroups = [ "networkmanager" "wheel" ];
|
||||
# packages = with pkgs; [];
|
||||
# };
|
||||
|
||||
|
||||
###########
|
||||
# MUTABLE #
|
||||
###########
|
||||
|
||||
# Allow unfree packages
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
|
||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||
|
||||
home-manager = {
|
||||
extraSpecialArgs = { inherit inputs; inherit system; };
|
||||
backupFileExtension = "backup";
|
||||
users.mbessette = import ./home.nix;
|
||||
};
|
||||
|
||||
# Allow unfree packages
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
|
||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||
|
||||
# List packages installed in system profile. To search, run:
|
||||
# $ nix search wget
|
||||
environment.systemPackages = with pkgs; [
|
||||
@@ -127,6 +119,7 @@
|
||||
############
|
||||
|
||||
programs.zsh.enable = true;
|
||||
virtualisation.docker.enable = true;
|
||||
|
||||
############
|
||||
# SERVICES #
|
||||
|
||||
@@ -1,14 +1,12 @@
|
||||
{ config, pkgs, inputs, ... }:
|
||||
|
||||
let
|
||||
agentPath = "~/.1password/agent.sock";
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
../../home-manager-modules
|
||||
];
|
||||
|
||||
firefox.enable = true;
|
||||
ssh.enable = true;
|
||||
vscode.enable = true;
|
||||
zsh.enable = true;
|
||||
|
||||
@@ -37,22 +35,7 @@ in
|
||||
# '';
|
||||
};
|
||||
|
||||
# Home Manager can also manage your environment variables through
|
||||
# 'home.sessionVariables'. These will be explicitly sourced when using a
|
||||
# shell provided by Home Manager. If you don't want to manage your shell
|
||||
# through Home Manager then you have to manually source 'hm-session-vars.sh'
|
||||
# located at either
|
||||
#
|
||||
# ~/.nix-profile/etc/profile.d/hm-session-vars.sh
|
||||
#
|
||||
# or
|
||||
#
|
||||
# ~/.local/state/nix/profiles/profile/etc/profile.d/hm-session-vars.sh
|
||||
#
|
||||
# or
|
||||
#
|
||||
# /etc/profiles/per-user/mbessette/etc/profile.d/hm-session-vars.sh
|
||||
#
|
||||
|
||||
home.sessionVariables = {
|
||||
EDITOR = "vim";
|
||||
};
|
||||
@@ -65,17 +48,6 @@ in
|
||||
userName = "Matthew Bessette";
|
||||
};
|
||||
|
||||
programs.ssh = {
|
||||
enable = true;
|
||||
extraConfig = ''
|
||||
Host *
|
||||
IdentityAgent ${agentPath}
|
||||
Host bromine
|
||||
HostName 192.168.1.247
|
||||
User mbessette
|
||||
'';
|
||||
};
|
||||
|
||||
nixpkgs = {
|
||||
config.allowUnfreePredicate = pkg:
|
||||
builtins.elem (pkgs.lib.getName pkg) [
|
||||
|
||||
Reference in New Issue
Block a user