Compare commits

..

3 Commits

5 changed files with 28 additions and 52 deletions

View File

@@ -41,6 +41,9 @@
Defaults lecture = never Defaults lecture = never
''; '';
# needed for allowOther in the home-manager impermanence config
programs.fuse.userAllowOther = true;
# reset / at each boot # reset / at each boot
# Note `lib.mkBefore` is used instead of `lib.mkAfter` here. # Note `lib.mkBefore` is used instead of `lib.mkAfter` here.
boot.initrd.postDeviceCommands = pkgs.lib.mkBefore '' boot.initrd.postDeviceCommands = pkgs.lib.mkBefore ''

View File

@@ -1,5 +1,6 @@
{ pkgs, ... }: { pkgs, ... }:
{ {
programs.fish.enable = true;
programs.zsh.enable = true; programs.zsh.enable = true;
users.users.ppetru = { users.users.ppetru = {
isNormalUser = true; isNormalUser = true;
@@ -8,7 +9,7 @@
"wheel" "wheel"
]; ];
shell = pkgs.zsh; shell = pkgs.fish;
hashedPassword = "$y$j9T$RStwCKefSqHTIiRo6u6Q50$Pp2dNUeJeUMH0HJdDoM/vXMQa2jqyTTPvvIzACHZhVB"; hashedPassword = "$y$j9T$RStwCKefSqHTIiRo6u6Q50$Pp2dNUeJeUMH0HJdDoM/vXMQa2jqyTTPvvIzACHZhVB";
openssh.authorizedKeys.keys = [ openssh.authorizedKeys.keys = [

View File

@@ -1,10 +1,7 @@
{ pkgs, ... }: { pkgs, ... }:
let
packages = import ./packages.nix { inherit pkgs; };
in
{ {
home = { home = {
inherit packages; packages = (import ./packages.nix { inherit pkgs; }).packages;
stateVersion = "24.05"; # TODO: unify this with the references in flake.nix:inputs stateVersion = "24.05"; # TODO: unify this with the references in flake.nix:inputs
sessionVariables = { sessionVariables = {
@@ -23,10 +20,10 @@ in
".ssh" ".ssh"
"projects" "projects"
]; ];
files = [ ]; files = [ ".local/share/fish/fish_history" ];
allowOther = true; allowOther = true;
}; };
}; };
programs = import ./programs.nix; programs = import ./programs.nix { inherit pkgs; };
} }

View File

@@ -1,13 +1,16 @@
{ pkgs }: { pkgs }:
{
let packages =
nixTools = with pkgs; [ with pkgs;
[
git git
home-manager home-manager
mosh mosh
tmux tmux
vim
zsh zsh
]; ]
in ++ (with pkgs.fishPlugins; [
nixTools # don't add failed commands to history
sponge
]);
}

View File

@@ -1,4 +1,9 @@
{ pkgs, ... }:
{ {
fish = {
enable = true;
};
git = { git = {
enable = true; enable = true;
userEmail = "petru@paler.net"; userEmail = "petru@paler.net";
@@ -38,37 +43,4 @@
set -g status-right "" set -g status-right ""
''; '';
}; };
zsh = {
enable = true;
history = {
save = 1000000;
size = 1000000;
};
prezto = {
enable = true;
pmodules = [
"gnu-utility"
"environment"
"terminal"
"editor"
"history"
"directory"
"spectrum"
"utility"
"completion"
"syntax-highlighting"
"prompt"
];
gnuUtility.prefix = "g";
prompt.theme = "pure";
utility.safeOps = false;
syntaxHighlighting.highlighters = [
"main"
"brackets"
"pattern"
"root"
];
};
};
} }