ADD services hosts
This commit is contained in:
parent
621f36fc34
commit
fd4a6d32ac
|
@ -0,0 +1,13 @@
|
|||
{ config, pkgs, ...}:
|
||||
{
|
||||
environment.variables.EDITOR = "nvim";
|
||||
environment.systemPackages = with pkgs; [
|
||||
gitAndTools.gitFull
|
||||
unzip
|
||||
zip
|
||||
tmux
|
||||
lshw
|
||||
bc
|
||||
neovim
|
||||
];
|
||||
}
|
|
@ -0,0 +1,16 @@
|
|||
{ ... }: {
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
../modules/users.nix
|
||||
../modules/common.nix
|
||||
|
||||
];
|
||||
|
||||
boot.cleanTmpDir = true;
|
||||
zramSwap.enable = true;
|
||||
networking.hostName = "services";
|
||||
services.openssh.enable = true;
|
||||
users.users.root.openssh.authorizedKeys.keys = [
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKUA1RW6JwZasspAp8qmFRFnlV5WXjhLfStAAkM+KYLv lucazeau.alexandre@gmail.com"
|
||||
];
|
||||
}
|
|
@ -0,0 +1,8 @@
|
|||
{ modulesPath, ... }:
|
||||
{
|
||||
imports = [ (modulesPath + "/profiles/qemu-guest.nix") ];
|
||||
boot.loader.grub.device = "/dev/sda";
|
||||
boot.initrd.kernelModules = [ "nvme" ];
|
||||
fileSystems."/" = { device = "/dev/sda1"; fsType = "ext4"; };
|
||||
|
||||
}
|
|
@ -0,0 +1,41 @@
|
|||
{ config, pkgs, ...}:
|
||||
{
|
||||
users = {
|
||||
groups = {
|
||||
alexandre = {};
|
||||
};
|
||||
users = {
|
||||
alexandre = {
|
||||
isNormalUser = true;
|
||||
createHome = true;
|
||||
home = "/home/alexandre";
|
||||
description = "Alexandre LUCAZEAU";
|
||||
extraGroups = [ "wheel" ];
|
||||
group = "alexandre";
|
||||
shell = pkgs.fish;
|
||||
openssh.authorizedKeys.keys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKUA1RW6JwZasspAp8qmFRFnlV5WXjhLfStAAkM+KYLv lucazeau.alexandre@gmail.com" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
programs.git = {
|
||||
enable = true;
|
||||
config.user.email = "lucazeau.alexandre@gmail.com";
|
||||
config.user.name = "Alexandre LUCAZEAU";
|
||||
config.init.defaultBranch = "main";
|
||||
config.core.sshCommand = "ssh -i ~/.ssh/id_ed25519-perso";
|
||||
};
|
||||
programs.fish.enable = true;
|
||||
programs.fish.shellAliases = {
|
||||
ll = "ls -l";
|
||||
ls = "ls --color=tty";
|
||||
vi = "nvim";
|
||||
vim = "nvim";
|
||||
};
|
||||
security.sudo = {
|
||||
enable = true;
|
||||
execWheelOnly = true;
|
||||
extraRules = [
|
||||
{ users = [ "alexandre" ]; commands = [ { command = "ALL"; options = [ "NOPASSWD" ]; } ]; }
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue