2022-03-04 16:50:25 +01: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 =
|
|
|
|
|
[ # Include the results of the hardware scan.
|
2022-03-05 13:56:48 +01:00
|
|
|
|
./hardware-configuration.nix
|
2022-03-04 17:42:40 +01:00
|
|
|
|
|
2022-03-05 13:56:48 +01:00
|
|
|
|
../../modules/base.nix
|
|
|
|
|
../../modules/autoupdate.nix
|
|
|
|
|
../../modules/desktop.nix
|
|
|
|
|
../../modules/printing.nix
|
2022-03-04 16:50:25 +01:00
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
# Use the systemd-boot EFI boot loader.
|
|
|
|
|
boot.loader.systemd-boot.enable = true;
|
|
|
|
|
boot.loader.efi.canTouchEfiVariables = true;
|
|
|
|
|
|
|
|
|
|
networking.hostName = "birne"; # Define your hostname.
|
|
|
|
|
|
|
|
|
|
# Set your time zone.
|
|
|
|
|
time.timeZone = "Europe/Busingen";
|
|
|
|
|
|
|
|
|
|
networking.useDHCP = false;
|
|
|
|
|
networking.interfaces.enp1s0.useDHCP = true;
|
|
|
|
|
|
|
|
|
|
nixpkgs.config.allowUnfree = true;
|
2022-03-04 17:38:49 +01:00
|
|
|
|
nix = {
|
|
|
|
|
package = pkgs.nixUnstable; # or versioned attributes like nix_2_4
|
|
|
|
|
extraOptions = ''
|
|
|
|
|
experimental-features = nix-command flakes
|
|
|
|
|
'';
|
|
|
|
|
};
|
2022-03-04 16:50:25 +01:00
|
|
|
|
|
|
|
|
|
# Enable CUPS to print documents.
|
|
|
|
|
# services.printing.enable = true;
|
|
|
|
|
|
|
|
|
|
# Enable sound.
|
|
|
|
|
# sound.enable = true;
|
|
|
|
|
# hardware.pulseaudio.enable = true;
|
|
|
|
|
|
|
|
|
|
|
2022-03-05 13:56:48 +01:00
|
|
|
|
users.users.printer = {
|
|
|
|
|
isNormalUser = true;
|
|
|
|
|
password = "printer";
|
|
|
|
|
extraGroups = [];
|
|
|
|
|
};
|
2022-03-04 16:50:25 +01:00
|
|
|
|
|
|
|
|
|
# List packages installed in system profile. To search, run:
|
|
|
|
|
# $ nix search wget
|
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
|
vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
|
|
|
|
|
wget
|
|
|
|
|
git
|
2022-03-05 13:56:48 +01:00
|
|
|
|
firefox
|
2022-03-04 16:50:25 +01:00
|
|
|
|
];
|
|
|
|
|
|
2022-03-05 13:56:48 +01:00
|
|
|
|
system.stateVersion = "21.11";
|
2022-03-04 16:50:25 +01:00
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|