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;
};
};
}