Removed zsh, fixed ssh-agent config
This commit is contained in:
@@ -116,15 +116,16 @@
|
|||||||
# Allow unfree packages
|
# Allow unfree packages
|
||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
|
||||||
# Install zsh
|
# Bash config
|
||||||
programs.zsh.enable = true;
|
programs.bash = {
|
||||||
|
blesh.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
# Define a user account. Don't forget to set a password with ‘passwd’.
|
# Define a user account. Don't forget to set a password with ‘passwd’.
|
||||||
users.users.chase = {
|
users.users.chase = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
description = "Chase";
|
description = "Chase";
|
||||||
extraGroups = [ "networkmanager" "wheel" ];
|
extraGroups = [ "networkmanager" "wheel" ];
|
||||||
shell = pkgs.zsh;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
# Install firefox.
|
# Install firefox.
|
||||||
@@ -171,7 +172,8 @@
|
|||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
alacritty
|
alacritty
|
||||||
audacity
|
audacity
|
||||||
bitwarden
|
bitwarden-cli
|
||||||
|
bitwarden-desktop
|
||||||
emacs-pgtk
|
emacs-pgtk
|
||||||
fastfetch
|
fastfetch
|
||||||
ffmpeg
|
ffmpeg
|
||||||
@@ -204,10 +206,11 @@
|
|||||||
];
|
];
|
||||||
|
|
||||||
# ssh agent
|
# ssh agent
|
||||||
programs.mtr.enable = true;
|
# programs.mtr.enable = true;
|
||||||
programs.gnupg.agent = {
|
programs.gnupg.agent.enable = true;
|
||||||
enable = true;
|
|
||||||
enableSSHSupport = true;
|
programs.ssh = {
|
||||||
|
enableAskPassword = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
# List services that you want to enable:
|
# List services that you want to enable:
|
||||||
@@ -217,7 +220,13 @@
|
|||||||
security.polkit.enable = true;
|
security.polkit.enable = true;
|
||||||
|
|
||||||
# Enable the OpenSSH daemon.
|
# Enable the OpenSSH daemon.
|
||||||
# services.openssh.enable = true;
|
services.openssh = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
PasswordAuthentication = false;
|
||||||
|
KbdInteractiveAuthentication = false;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
# Open ports in the firewall.
|
# Open ports in the firewall.
|
||||||
# networking.firewall.allowedTCPPorts = [ ... ];
|
# networking.firewall.allowedTCPPorts = [ ... ];
|
||||||
|
24
flake.lock
generated
24
flake.lock
generated
@@ -99,11 +99,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1747225851,
|
"lastModified": 1747565775,
|
||||||
"narHash": "sha256-4IbmZrNOdXP143kZEUzxBS5SqyxUlaSHLgdpeJfP2ZU=",
|
"narHash": "sha256-B6jmKHUEX1jxxcdoYHl7RVaeohtAVup8o3nuVkzkloA=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "6bf057fc8326e83bda05a669fc08d106547679fb",
|
"rev": "97118a310eb8e13bc1b9b12d67267e55b7bee6c8",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -186,11 +186,11 @@
|
|||||||
"xdph": "xdph"
|
"xdph": "xdph"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1747503792,
|
"lastModified": 1747610850,
|
||||||
"narHash": "sha256-Okd5cu0jxGa+x4xpfMX9S8QH/zddaFUQvw97V6H2W3E=",
|
"narHash": "sha256-b41pc9J8b9fxRFHBQRKoTXZHpAsKW5eJbNsTMris2Mo=",
|
||||||
"owner": "hyprwm",
|
"owner": "hyprwm",
|
||||||
"repo": "Hyprland",
|
"repo": "Hyprland",
|
||||||
"rev": "705b97c4ac93148820012c701fe39445cf76a590",
|
"rev": "eb3b38d40baca5c05ddbc1507b3d3f02a0ccb164",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -389,11 +389,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs_2": {
|
"nixpkgs_2": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1746904237,
|
"lastModified": 1747542820,
|
||||||
"narHash": "sha256-3e+AVBczosP5dCLQmMoMEogM57gmZ2qrVSrmq9aResQ=",
|
"narHash": "sha256-GaOZntlJ6gPPbbkTLjbd8BMWaDYafhuuYRNrxCGnPJw=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "d89fc19e405cb2d55ce7cc114356846a0ee5e956",
|
"rev": "292fa7d4f6519c074f0a50394dbbe69859bb6043",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -412,11 +412,11 @@
|
|||||||
"treefmt-nix": "treefmt-nix"
|
"treefmt-nix": "treefmt-nix"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1747251912,
|
"lastModified": 1747676902,
|
||||||
"narHash": "sha256-zgHG2yUpPRkcz0lJNVFFY47ohKYlZ0IIR+y7vmHfQRs=",
|
"narHash": "sha256-jksy3fqyf4zUPIrAL8RFIHEECXITHtsyV9hp0VHmlLY=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "NUR",
|
"repo": "NUR",
|
||||||
"rev": "fde7d7ed44baaa2cffcd570c18bb7981d2696d72",
|
"rev": "d4ae72a58d239b565c34323f9f02aac91901f9c7",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
26
home.nix
26
home.nix
@@ -19,13 +19,14 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
programs.bash = {
|
programs.bash = {
|
||||||
enable = false;
|
enable = true;
|
||||||
shellAliases = {
|
enableCompletion = true;
|
||||||
ll = "ls -l";
|
bashrcExtra = ''
|
||||||
".." = "cd ..";
|
export SSH_AUTH_SOCK=/home/chase/.bitwarden-ssh-agent.sock
|
||||||
};
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
programs.firefox = {
|
programs.firefox = {
|
||||||
enable = true;
|
enable = true;
|
||||||
nativeMessagingHosts = [ pkgs.firefoxpwa ];
|
nativeMessagingHosts = [ pkgs.firefoxpwa ];
|
||||||
@@ -109,21 +110,6 @@
|
|||||||
|
|
||||||
programs.git-credential-oauth.enable =true;
|
programs.git-credential-oauth.enable =true;
|
||||||
|
|
||||||
programs.zsh = {
|
|
||||||
enable = true;
|
|
||||||
enableCompletion = true;
|
|
||||||
autosuggestion.enable = true;
|
|
||||||
syntaxHighlighting.enable = true;
|
|
||||||
localVariables = {
|
|
||||||
SSH_AUTH_SOCK = [ "/home/chase/.bitwarden-ssh-agent.sock" ];
|
|
||||||
};
|
|
||||||
shellAliases = {
|
|
||||||
ll = "ls -l";
|
|
||||||
".." = "cd ..";
|
|
||||||
};
|
|
||||||
history.size = 10000;
|
|
||||||
};
|
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
runelite
|
runelite
|
||||||
];
|
];
|
||||||
|
Reference in New Issue
Block a user