Big refactor (#1)
All checks were successful
check / check (push) Successful in 34s

Reviewed-on: https://gitea.mrdev023.fr/florian.richer/nixos/pulls/1
Co-authored-by: Florian RICHER <florian.richer@protonmail.com>
Co-committed-by: Florian RICHER <florian.richer@protonmail.com>
This commit is contained in:
Florian RICHER 2024-05-28 10:12:33 +02:00 committed by florian.richer
parent e9329e63dc
commit b7f82f87e8
84 changed files with 1100 additions and 1247 deletions

View file

@ -7,16 +7,8 @@
{
imports =
[
../../modules/linux_gaming.nix
../../modules/system.nix
../../modules/network.nix
../../modules/keymaps/us.nix
../../modules/pipewire.nix
../../modules/plasma.nix
../../modules/plymouth.nix
../../modules/system
../../modules # Import optional configuration
# Include the results of the hardware scan.
./hardware-configuration.nix
];
@ -31,8 +23,10 @@
};
};
# Configure for testing in vm
networking.hostName = "nixos-vm"; # Define your hostname.
users.users.florian.initialPassword = "test";
# Configure for testing in vm
virtualisation.vmVariant = {
# following configuration is added only when building VM with build-vm
virtualisation = {
@ -41,5 +35,24 @@
};
};
networking.hostName = "nixos-vm"; # Define your hostname.
modules.system = {
desktop = {
plasma.enable = true;
};
server = {
docker.enable = true;
openssh.enable = true;
};
hardware = {
bluetooth.enable = true;
gamingKernel.enable = true;
keymaps.layout = "us";
pipewire.enable = true;
plymouth.enable = true;
printing.enable = true;
waydroid.enable = true;
};
};
}

25
hosts/nixos-test/home.nix Normal file
View file

@ -0,0 +1,25 @@
{ config, pkgs, ... }:
{
imports = [
../../modules/home
];
modules.home = {
apps = {
chromium.enable = true;
flatpak.enable = true;
jetbrainsToolbox.enable = true;
kitty.enable = true;
vscode.enable = true;
};
shell = {
zsh.enable = true;
atuin.enable = true;
direnv.enable = true;
git.enable = true;
};
};
}

View file

@ -7,18 +7,7 @@
{
imports =
[
../../modules/linux_gaming.nix
../../modules/system.nix
../../modules/network.nix
../../modules/nvidia.nix
../../modules/plasma.nix
../../modules/keymaps/us.nix
../../modules/bluetooth.nix
../../modules/pipewire.nix
../../modules/plymouth.nix
../../modules/waydroid.nix
../../modules # Import optional configuration
../../modules/system
# Include the results of the hardware scan.
./hardware-configuration.nix
@ -29,4 +18,21 @@
boot.loader.efi.canTouchEfiVariables = true;
networking.hostName = "nixos-desktop-perso"; # Define your hostname.
modules.system = {
desktop = {
plasma.enable = true;
};
hardware = {
bluetooth.enable = true;
gamingKernel.enable = true;
keymaps.layout = "us";
nvidia.enable = true;
pipewire.enable = true;
plymouth.enable = true;
printing.enable = true;
waydroid.enable = true;
};
};
}

View file

@ -0,0 +1,25 @@
{ config, pkgs, ... }:
{
imports = [
../../modules/home
];
modules.home = {
apps = {
chromium.enable = true;
flatpak.enable = true;
jetbrainsToolbox.enable = true;
kitty.enable = true;
vscode.enable = true;
};
shell = {
zsh.enable = true;
atuin.enable = true;
direnv.enable = true;
git.enable = true;
};
};
}

View file

@ -7,17 +7,7 @@
{
imports =
[
../../modules/linux_gaming.nix
../../modules/system.nix
../../modules/network.nix
../../modules/nvidia.nix
../../modules/plasma.nix
../../modules/keymaps/fr.nix
../../modules/bluetooth.nix
../../modules/pipewire.nix
../../modules/plymouth.nix
../../modules # Import optional configuration
../../modules/system
# Include the results of the hardware scan.
./hardware-configuration.nix
@ -42,5 +32,20 @@
nvidiaBusId = "PCI:1:0:0";
};
# customModules.gpuPassthrough.enable = true;
modules.system = {
desktop = {
plasma.enable = true;
};
hardware = {
bluetooth.enable = true;
gamingKernel.enable = true;
keymaps.layout = "fr";
nvidia.enable = true;
pipewire.enable = true;
plymouth.enable = true;
printing.enable = true;
waydroid.enable = true;
};
};
}

View file

@ -0,0 +1,25 @@
{ config, pkgs, ... }:
{
imports = [
../../modules/home
];
modules.home = {
apps = {
chromium.enable = true;
flatpak.enable = true;
jetbrainsToolbox.enable = true;
kitty.enable = true;
vscode.enable = true;
};
shell = {
zsh.enable = true;
atuin.enable = true;
direnv.enable = true;
git.enable = true;
};
};
}

View file

@ -7,17 +7,7 @@
{
imports =
[
../../modules/linux_gaming.nix
../../modules/system.nix
../../modules/network.nix
../../modules/nvidia.nix
../../modules/plasma.nix
../../modules/keymaps/fr.nix
../../modules/bluetooth.nix
../../modules/pipewire.nix
../../modules/plymouth.nix
../../modules # Import optional configuration
../../modules/system
# Include the results of the hardware scan.
./hardware-configuration.nix
@ -41,4 +31,21 @@
# information bus: pci@0000:01:00.0
nvidiaBusId = "PCI:1:0:0";
};
modules.system = {
desktop = {
plasma.enable = true;
};
hardware = {
bluetooth.enable = true;
gamingKernel.enable = true;
keymaps.layout = "fr";
nvidia.enable = true;
pipewire.enable = true;
plymouth.enable = true;
printing.enable = true;
waydroid.enable = true;
};
};
}

25
hosts/pro-laptop/home.nix Normal file
View file

@ -0,0 +1,25 @@
{ config, pkgs, ... }:
{
imports = [
../../modules/home
];
modules.home = {
apps = {
chromium.enable = true;
flatpak.enable = true;
jetbrainsToolbox.enable = true;
kitty.enable = true;
vscode.enable = true;
};
shell = {
zsh.enable = true;
atuin.enable = true;
direnv.enable = true;
git.enable = true;
};
};
}