nixos-config/hosts/penduick/configuration.nix

62 lines
1.6 KiB
Nix
Raw Permalink Normal View History

2025-10-29 18:31:07 +01:00
{ config, pkgs, ... }:
let
globals = import ../../config/globals.nix;
in {
imports = [
./hardware-configuration.nix
2025-11-02 10:12:01 +01:00
../../modules/desktop/plasma.nix
2025-10-29 18:31:07 +01:00
../../modules/common/nix.nix
../../modules/common/base.nix
../../modules/common/fonts.nix
../../modules/common/networking.nix
../../modules/common/plymouth.nix
../../modules/common/audio.nix
];
2025-10-29 19:06:52 +01:00
boot.kernelPackages = pkgs.linuxPackages_latest;
2025-10-29 18:31:07 +01:00
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
boot.initrd.luks.devices.cryptroot.device = "/dev/nvme0n1p3";
networking.hostName = "penduick";
networking.networkmanager.enable = true;
console.keyMap = "fr";
services.openssh.enable = true;
services.openssh.settings = {
PermitRootLogin = "no";
PasswordAuthentication = true;
};
2025-11-09 10:48:19 +01:00
age.identityPaths = [ "/etc/agenix/penduick.key" "/etc/agenix/dunoz-admin.key" ];
# age.secrets."dunoz-password-penduick".file = ../../secrets/dunoz-password-penduick.age;
2025-10-30 08:19:01 +01:00
users= {
2025-11-09 10:48:19 +01:00
# mutableUsers = false ;
2025-10-30 08:19:01 +01:00
users.dunoz = {
isNormalUser = true;
extraGroups = [ "wheel" "networkmanager" ];
2025-11-09 10:48:19 +01:00
# passwordFile = config.age.secrets."dunoz-password-penduick".path;
2025-10-30 08:19:01 +01:00
shell = pkgs.zsh;
};
2025-10-29 18:31:07 +01:00
};
home-manager = {
useGlobalPkgs = true ;
users.dunoz = import ../../hm/users/dunoz-desktop.nix ;
};
environment.systemPackages = with pkgs; [
2025-10-29 22:57:34 +01:00
git htop wget curl
2025-10-29 18:31:07 +01:00
neovim
2025-10-30 08:19:01 +01:00
age ssh-to-age
2025-11-09 10:48:19 +01:00
weechat
2025-10-29 18:31:07 +01:00
];
# Optionnel mais utile pour SSH au démarrage
systemd.services.sshd.wantedBy = [ "multi-user.target" ];
system.stateVersion = "25.05";
}