init repos
This commit is contained in:
4
modules/system/boot.nix
Normal file
4
modules/system/boot.nix
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
}
|
||||
8
modules/system/locale.nix
Normal file
8
modules/system/locale.nix
Normal file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
time.timeZone = "Europe/Paris";
|
||||
|
||||
services.xserver.xkb = {
|
||||
layout = "fr";
|
||||
variant = "azerty";
|
||||
};
|
||||
}
|
||||
8
modules/system/network.nix
Normal file
8
modules/system/network.nix
Normal file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
networking.networkmanager.enable = true;
|
||||
|
||||
services.openssh = {
|
||||
enable = true;
|
||||
settings.PasswordAuthentication = true;
|
||||
};
|
||||
}
|
||||
23
modules/system/nfs.nix
Normal file
23
modules/system/nfs.nix
Normal file
@@ -0,0 +1,23 @@
|
||||
{
|
||||
fileSystems."/mnt/nas/commun" = {
|
||||
device = "192.168.10.50:/mnt/DocNas/Commun";
|
||||
fsType = "nfs";
|
||||
options = [
|
||||
"nfsvers=4"
|
||||
"x-systemd.automount"
|
||||
"noauto"
|
||||
"x-systemd.idle-timeout=600"
|
||||
];
|
||||
};
|
||||
|
||||
fileSystems."/mnt/nas/benjamin" = {
|
||||
device = "192.168.10.50:/mnt/DocNas/Benjamin";
|
||||
fsType = "nfs";
|
||||
options = [
|
||||
"nfsvers=4"
|
||||
"x-systemd.automount"
|
||||
"noauto"
|
||||
"x-systemd.idle-timeout=600"
|
||||
];
|
||||
};
|
||||
}
|
||||
12
modules/system/packages.nix
Normal file
12
modules/system/packages.nix
Normal file
@@ -0,0 +1,12 @@
|
||||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
environment.systemPackages = with pkgs; [
|
||||
git
|
||||
vim
|
||||
htop
|
||||
tmux
|
||||
fastfetch
|
||||
inxi
|
||||
];
|
||||
}
|
||||
13
modules/system/users.nix
Normal file
13
modules/system/users.nix
Normal file
@@ -0,0 +1,13 @@
|
||||
{
|
||||
users.users.waha = {
|
||||
isNormalUser = true;
|
||||
extraGroups = [ "wheel" ];
|
||||
initialPassword = "zekzek";
|
||||
};
|
||||
|
||||
users.users.lafrite = {
|
||||
isNormalUser = true;
|
||||
extraGroups = [ "networkmanager" "video" "render" "bluetooth" ];
|
||||
initialPassword = "zekzek";
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user