2023-08-20 00:48:31 +02:00
|
|
|
|
# Edit this configuration file to define what should be installed on
|
|
|
|
|
# your system. Help is available in the configuration.nix(5) man page
|
|
|
|
|
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
|
|
|
|
|
|
|
|
|
{ config, pkgs, ... }:
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
imports =
|
|
|
|
|
[
|
2024-05-25 15:16:08 +02:00
|
|
|
|
../../modules
|
|
|
|
|
|
2023-08-20 00:48:31 +02:00
|
|
|
|
# Include the results of the hardware scan.
|
|
|
|
|
./hardware-configuration.nix
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
# Bootloader.
|
|
|
|
|
boot.loader = {
|
|
|
|
|
grub = {
|
|
|
|
|
enable = true;
|
|
|
|
|
device = "/dev/vda";
|
|
|
|
|
efiSupport = false;
|
|
|
|
|
useOSProber = true;
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
2024-05-25 15:16:08 +02:00
|
|
|
|
# Define a user account. Don't forget to set a password with ‘passwd’.
|
|
|
|
|
users.users.florian = {
|
|
|
|
|
isNormalUser = true;
|
|
|
|
|
initialPassword = "test";
|
|
|
|
|
description = "florian";
|
|
|
|
|
extraGroups = [ "networkmanager" "wheel" ];
|
|
|
|
|
};
|
|
|
|
|
home-manager.users.florian = {
|
|
|
|
|
home = {
|
|
|
|
|
username = "florian";
|
|
|
|
|
homeDirectory = "/home/florian";
|
|
|
|
|
|
|
|
|
|
stateVersion = "24.05";
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
programs.home-manager.enable = true;
|
|
|
|
|
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
|
|
|
|
};
|
|
|
|
|
|
2024-05-25 23:51:37 +02:00
|
|
|
|
modules = {
|
|
|
|
|
# users.florian = {
|
|
|
|
|
|
|
|
|
|
# };
|
|
|
|
|
|
2024-05-26 00:07:18 +02:00
|
|
|
|
desktop = {
|
|
|
|
|
plasma.enable = true;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
server = {
|
|
|
|
|
docker.enable = true;
|
|
|
|
|
openssh.enable = true;
|
|
|
|
|
};
|
|
|
|
|
|
2024-05-25 23:51:37 +02:00
|
|
|
|
system = {
|
|
|
|
|
bluetooth.enable = true;
|
|
|
|
|
gamingKernel.enable = true;
|
2024-05-26 00:00:14 +02:00
|
|
|
|
keymaps.layout = "us";
|
2024-05-25 23:51:37 +02:00
|
|
|
|
nvidia.enable = true;
|
|
|
|
|
pipewire.enable = true;
|
|
|
|
|
plymouth.enable = true;
|
|
|
|
|
printing.enable = true;
|
|
|
|
|
waydroid.enable = true;
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
2024-05-24 23:31:04 +02:00
|
|
|
|
# Configure for testing in vm
|
|
|
|
|
virtualisation.vmVariant = {
|
|
|
|
|
# following configuration is added only when building VM with build-vm
|
|
|
|
|
virtualisation = {
|
|
|
|
|
memorySize = 8192; # Use 8192MiB memory.
|
|
|
|
|
cores = 8;
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
2024-02-02 21:58:06 +01:00
|
|
|
|
networking.hostName = "nixos-vm"; # Define your hostname.
|
2023-08-20 00:48:31 +02:00
|
|
|
|
}
|