#TODO: mv mods > config to flake.nix (frija first)

This commit is contained in:
Zonsopkomst 2023-02-06 16:42:03 -06:00
parent 3aab6858d8
commit 4ea0996f9d
9 changed files with 61 additions and 0 deletions

6
common/CUPS.nix Normal file
View File

@ -0,0 +1,6 @@
{ config, pkgs, ... }:
{
# Enable CUPS to print documents.
services.printing.enable = true;
}

View File

View File

View File

7
common/gnome.nix Normal file
View File

@ -0,0 +1,7 @@
{ config, pkgs, ... }:
{
# Enable the GNOME Desktop Environment.
services.xserver.displayManager.gdm.enable = true;
services.xserver.desktopManager.gnome.enable = true;
}

20
common/pipewire.nix Normal file
View File

@ -0,0 +1,20 @@
{ config, pkgs, ... }:
{
# Enable sound with pipewire.
sound.enable = true;
hardware.pulseaudio.enable = false;
security.rtkit.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
# If you want to use JACK applications, uncomment this
#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;
};
}

21
common/time.nix Normal file
View File

@ -0,0 +1,21 @@
{ config, pkgs, ... }:
{
# Set your time zone.
time.timeZone = "America/Chicago";
# Select internationalisation properties.
i18n.defaultLocale = "en_US.UTF-8";
i18n.extraLocaleSettings = {
LC_ADDRESS = "en_US.UTF-8";
LC_IDENTIFICATION = "en_US.UTF-8";
LC_MEASUREMENT = "en_US.UTF-8";
LC_MONETARY = "en_US.UTF-8";
LC_NAME = "en_US.UTF-8";
LC_NUMERIC = "en_US.UTF-8";
LC_PAPER = "en_US.UTF-8";
LC_TELEPHONE = "en_US.UTF-8";
LC_TIME = "en_US.UTF-8";
};
}

View File

@ -35,6 +35,13 @@
frija = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
#TODO see if I can move the imports section from configuration.nix successfully
./common/amd.nix #comment out amd.nix in configuration file to start
#./common/CUPS.nix
#./common/gnome.nix
#./common/pipewire.nix
#./common/time.nix
#TODO change the configuration.nix to a default.nix file (see discourse bookmark)
./hosts/local/frija/configuration.nix
home-manager.nixosModules.home-manager
{