Skip to content

Commit

Permalink
fix: set console font & ssh agent
Browse files Browse the repository at this point in the history
  • Loading branch information
M0NsTeRRR committed Oct 7, 2024
1 parent e339039 commit 32cc02d
Show file tree
Hide file tree
Showing 6 changed files with 52 additions and 21 deletions.
36 changes: 18 additions & 18 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions home/user/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
./packages.nix
./programs
./script.nix
./services
./theme.nix
];

Expand Down
6 changes: 4 additions & 2 deletions home/user/programs/kitty.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
{ pkgs, ... }:
{
programs.kitty = {
enable = true;
font.name = "JetBrainsMono Nerd Font";
font = {
name = "JetBrainsMono Nerd Font";
size = 12;
};
};
}
1 change: 1 addition & 0 deletions home/user/services/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{ imports = [ ./ssh-agent.nix ]; }
22 changes: 22 additions & 0 deletions home/user/services/ssh-agent.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
systemd.user.services.ssh-agent = {
Unit = {
Description = "SSH Agent";
};
Install = {
WantedBy = [ "default.target" ];
};
UnitConfig.ConditionUser = "!@system";
Service = {
ExecStartPre = "${pkgs.coreutils}/bin/rm -f %t/ssh-agent";
ExecStart = "${cfg.package}/bin/ssh-agent -a %t/ssh-agent";
StandardOutput = "null";
Type = "forking";
Restart = "on-failure";
SuccessExitStatus = "0 2";
};

Environment.SSH_ASKPASS = lib.optionalString cfg.enableAskPassword askPasswordWrapper;
Environment.DISPLAY = "fake";
};
}
7 changes: 6 additions & 1 deletion system/modules/internationalization.nix
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
{ pkgs, ... }:
{
time.timeZone = "Europe/Paris";
i18n.defaultLocale = "fr_FR.UTF-8";

console.keyMap = "fr";
console = {
keyMap = "fr";
font = "ter-i32b";
packages = with pkgs; [ terminus_font ];
};

services = {
xserver = {
Expand Down

0 comments on commit 32cc02d

Please sign in to comment.