Misc tidying, set zsh as default shell for root user
This commit is contained in:
parent
2a628143bd
commit
055b557c33
|
@ -24,7 +24,7 @@
|
|||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAII1tJFdbiyJApuVZFvo9E9kjlBwvXZeySqVuS2qGdxha tux@monarch"
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINI1dWlS16Keil0MGPWmMsBzx8F9ylfz+fRwxUr8/tZ/ ion"
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGAcvAQ8W71Bn8pdMYst1hoVCmVJ+0h4HBlJzu1C6dwy xenia@Northstar"
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDI44C35I2x9tqzeZDmIpbzmGJWXfATn/Wp5KzVRdlCi root@debian"
|
||||
# "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDI44C35I2x9tqzeZDmIpbzmGJWXfATn/Wp5KzVRdlCi root@debian"
|
||||
];
|
||||
};
|
||||
home-manager.users.xenia = import ./home/Vanguard/xenia.nix;
|
||||
|
|
74
common.nix
74
common.nix
|
@ -1,55 +1,31 @@
|
|||
{pkgs, ...}: {
|
||||
nix.settings.experimental-features = ["nix-command" "flakes"];
|
||||
# Allow unfree packages
|
||||
{...}: {
|
||||
nix = {
|
||||
settings.experimental-features = ["nix-command" "flakes"];
|
||||
gc = {
|
||||
automatic = true;
|
||||
dates = "daily";
|
||||
options = "--delete-older-than 7d";
|
||||
};
|
||||
extraOptions = ''
|
||||
keep-outputs = true
|
||||
keep-derivations = true
|
||||
'';
|
||||
};
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
|
||||
# Home manager integration with NixOS
|
||||
home-manager.useUserPackages = false;
|
||||
home-manager.useGlobalPkgs = true;
|
||||
|
||||
# Enable networking
|
||||
home-manager = {
|
||||
useUserPackages = false;
|
||||
useGlobalPkgs = true;
|
||||
};
|
||||
networking.networkmanager.enable = true;
|
||||
|
||||
# Enable power-profiles
|
||||
services.power-profiles-daemon.enable = true;
|
||||
|
||||
services.flatpak.enable = true;
|
||||
services = {
|
||||
power-profiles-daemon.enable = true;
|
||||
flatpak.enable = true;
|
||||
};
|
||||
virtualisation.podman.enable = true;
|
||||
programs.nix-ld = {
|
||||
enable = true;
|
||||
libraries = with pkgs; [
|
||||
stdenv.cc.cc
|
||||
zlib
|
||||
fuse3
|
||||
icu
|
||||
openssl
|
||||
curl
|
||||
expat
|
||||
];
|
||||
};
|
||||
|
||||
fonts.fontconfig.enable = true;
|
||||
programs.ssh.startAgent = true;
|
||||
programs.fish.enable = true;
|
||||
programs.zsh = {
|
||||
enable = true;
|
||||
enableCompletion = true;
|
||||
autosuggestions = {
|
||||
enable = true;
|
||||
};
|
||||
syntaxHighlighting = {
|
||||
enable = true;
|
||||
};
|
||||
programs = {
|
||||
ssh.startAgent = true;
|
||||
fish.enable = true;
|
||||
zsh.enable = true;
|
||||
};
|
||||
|
||||
nix.gc = {
|
||||
automatic = true;
|
||||
dates = "daily";
|
||||
options = "--delete-older-than 7d";
|
||||
};
|
||||
|
||||
nix.extraOptions = ''
|
||||
keep-outputs = true
|
||||
keep-derivations = true
|
||||
'';
|
||||
}
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
{...}: let
|
||||
{pkgs, ...}: let
|
||||
home-manager = builtins.fetchTarball "https://github.com/nix-community/home-manager/archive/master.tar.gz";
|
||||
in {
|
||||
imports = [(import "${home-manager}/nixos")];
|
||||
users.users.root.shell = pkgs.zsh;
|
||||
home-manager.users.root = {
|
||||
imports = [./env ./ssh ./git];
|
||||
imports = [./env/readline.nix ./env/starship.nix ./env/zsh.nix];
|
||||
home.username = "root";
|
||||
home.homeDirectory = "/root";
|
||||
home.stateVersion = "22.11";
|
||||
|
|
8
home/env/bash.nix
vendored
8
home/env/bash.nix
vendored
|
@ -1,11 +1,5 @@
|
|||
{...}: {
|
||||
programs.bash = {
|
||||
enable = true;
|
||||
shellAliases = {
|
||||
lg = "lazygit";
|
||||
nixos-update = "sudo git -C /etc/nixos/config pull && sudo nixos-rebuild switch";
|
||||
};
|
||||
};
|
||||
programs.bash.enable = true;
|
||||
programs.keychain.enableBashIntegration = true;
|
||||
programs.starship.enableBashIntegration = true;
|
||||
}
|
||||
|
|
5
home/env/fish.nix
vendored
5
home/env/fish.nix
vendored
|
@ -1,10 +1,7 @@
|
|||
{pkgs, ...}: {
|
||||
programs.fish = {
|
||||
enable = true;
|
||||
shellAbbrs = {
|
||||
lg = "lazygit";
|
||||
nixos-update = "sudo git -C /etc/nixos/config pull && sudo nixos-rebuild switch";
|
||||
};
|
||||
shellAbbrs = {lg = "lazygit";};
|
||||
plugins = [
|
||||
{
|
||||
name = "tokyonight";
|
||||
|
|
2
home/env/keychain.nix
vendored
2
home/env/keychain.nix
vendored
|
@ -1,7 +1,7 @@
|
|||
{...}: {
|
||||
programs.keychain = {
|
||||
enable = true;
|
||||
extraFlags = ["--quiet" "--noask" "--ignore-missing"];
|
||||
extraFlags = ["--quiet" "--ignore-missing"];
|
||||
keys = ["id_rsa" "id_ed25519"];
|
||||
enableXsessionIntegration = true;
|
||||
};
|
||||
|
|
5
home/env/zsh.nix
vendored
5
home/env/zsh.nix
vendored
|
@ -8,11 +8,6 @@
|
|||
autocd = true;
|
||||
dotDir = ".config/zsh";
|
||||
historySubstringSearch.enable = true;
|
||||
shellAliases = {
|
||||
ll = "ls -l";
|
||||
lg = "lazygit";
|
||||
nixos-update = "sudo git -C /etc/nixos/config pull && sudo nixos-rebuild switch";
|
||||
};
|
||||
history.path = "${config.xdg.dataHome}/zsh/history";
|
||||
};
|
||||
programs.keychain.enableZshIntegration = true;
|
||||
|
|
Loading…
Reference in a new issue