feat : Refractor my host specific to be more generic
This commit is contained in:
parent
0d29fd5686
commit
23a6282e6d
10 changed files with 196 additions and 163 deletions
|
|
@ -1,18 +1,44 @@
|
|||
{ config,pkgs,lib, ... }:
|
||||
{ config,pkgs,lib,hostName, ... }:
|
||||
|
||||
{
|
||||
system.stateVersion = "25.11";
|
||||
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
./package.nix
|
||||
./host.nix
|
||||
./default.nix
|
||||
./host
|
||||
./module
|
||||
];
|
||||
|
||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||
# List packages installed in system profile. To search, run:
|
||||
# $ nix search wget
|
||||
environment.systemPackages = with pkgs; [
|
||||
micro
|
||||
git
|
||||
cloudflared
|
||||
cloudflare-warp
|
||||
zoxide
|
||||
fzf
|
||||
sqlite
|
||||
# vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
|
||||
# wget
|
||||
];
|
||||
|
||||
environment.variables = {
|
||||
TERM = "xterm-256color";
|
||||
};
|
||||
|
||||
programs = {
|
||||
zsh.enable = true; # Mandatory for the user manager
|
||||
|
||||
# Some programs need SUID wrappers, can be configured further or are
|
||||
# started in user sessions.
|
||||
#mtr.enable = true;
|
||||
#gnupg.agent = {
|
||||
# enable = true;
|
||||
# enableSSHSupport = true;
|
||||
# };
|
||||
};
|
||||
|
||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||
|
||||
boot = {
|
||||
loader = {
|
||||
|
|
@ -23,7 +49,7 @@
|
|||
};
|
||||
|
||||
networking = {
|
||||
hostName = "ThinkCentre-Server-004"; # Define your hostname.
|
||||
hostName = hostName; # Define your hostname.
|
||||
#wireless.enable = true; # Enables wireless support via wpa_supplicant.
|
||||
#proxy.default = "http://user:password@proxy:port/";
|
||||
#proxy.noProxy = "127.0.0.1,localhost,internal.domain";
|
||||
|
|
@ -49,10 +75,25 @@
|
|||
};
|
||||
};
|
||||
|
||||
services.xserver.xkb = {
|
||||
layout = "fr";
|
||||
variant = "azerty";
|
||||
services = {
|
||||
xserver.xkb = {
|
||||
layout = "fr";
|
||||
variant = "azerty";
|
||||
};
|
||||
openssh = {
|
||||
enable = true;
|
||||
settings.Macs = [
|
||||
# Current defaults:
|
||||
"hmac-sha2-512-etm@openssh.com"
|
||||
"hmac-sha2-256-etm@openssh.com"
|
||||
"umac-128-etm@openssh.com"
|
||||
# Cloudfare:
|
||||
"hmac-sha2-256"
|
||||
];
|
||||
};
|
||||
};
|
||||
# Allow unfree packages
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
|
||||
users.users.manager = {
|
||||
isNormalUser = true;
|
||||
|
|
@ -98,32 +139,4 @@
|
|||
});
|
||||
'';
|
||||
};
|
||||
|
||||
programs = {
|
||||
zsh.enable = true; # Mandatory for the user manager
|
||||
|
||||
# Some programs need SUID wrappers, can be configured further or are
|
||||
# started in user sessions.
|
||||
#mtr.enable = true;
|
||||
#gnupg.agent = {
|
||||
# enable = true;
|
||||
# enableSSHSupport = true;
|
||||
# };
|
||||
};
|
||||
|
||||
environment.variables = {
|
||||
TERM = "xterm-256color";
|
||||
};
|
||||
|
||||
services.openssh = {
|
||||
enable = true;
|
||||
settings.Macs = [
|
||||
# Current defaults:
|
||||
"hmac-sha2-512-etm@openssh.com"
|
||||
"hmac-sha2-256-etm@openssh.com"
|
||||
"umac-128-etm@openssh.com"
|
||||
# Cloudfare:
|
||||
"hmac-sha2-256"
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue