73 lines
1.9 KiB
Nix
73 lines
1.9 KiB
Nix
# 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’).
|
||
{
|
||
pkgs,
|
||
inputs,
|
||
...
|
||
}: {
|
||
imports = [
|
||
inputs.home-manager.nixosModules.home-manager
|
||
../../modules/system.nix
|
||
./hardware-configuration.nix
|
||
];
|
||
|
||
networking.hostName = "boxes_vm";
|
||
|
||
# Install firefox.
|
||
programs.firefox.enable = true;
|
||
|
||
environment.systemPackages = with pkgs; [];
|
||
|
||
home-manager = {
|
||
extraSpecialArgs = {inherit inputs;};
|
||
users = {
|
||
"aleidk" = import ./home.nix;
|
||
};
|
||
};
|
||
|
||
services = {
|
||
xserver = {
|
||
enable = true;
|
||
|
||
displayManager.gdm.enable = true;
|
||
desktopManager.gnome.enable = true;
|
||
};
|
||
|
||
printing.enable = true;
|
||
spice-webdavd.enable = true;
|
||
|
||
pipewire = {
|
||
enable = true;
|
||
alsa.enable = true;
|
||
alsa.support32Bit = true;
|
||
pulse.enable = true;
|
||
#jack.enable = true;
|
||
|
||
# use the example session manager (no others are packaged yet so this is enabled by default,
|
||
# no need to redefine it in your config for now)
|
||
#media-session.enable = true;
|
||
};
|
||
};
|
||
|
||
hardware.pulseaudio.enable = false;
|
||
security.rtkit.enable = true;
|
||
|
||
# Enable networking
|
||
networking.networkmanager.enable = true;
|
||
|
||
# Bootloader.
|
||
boot.loader.grub = {
|
||
enable = true;
|
||
device = "/dev/vda";
|
||
useOSProber = true;
|
||
};
|
||
|
||
# This value determines the NixOS release from which the default
|
||
# settings for stateful data, like file locations and database versions
|
||
# on your system were taken. It‘s perfectly fine and recommended to leave
|
||
# this value at the release version of the first install of this system.
|
||
# Before changing this value read the documentation for this option
|
||
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
||
system.stateVersion = "24.05"; # Did you read the comment?
|
||
}
|