Skip to content

Instantly share code, notes, and snippets.

@pniedzwiedzinski
Last active October 21, 2020 15:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pniedzwiedzinski/84677c58f791239e0117479b8c056b11 to your computer and use it in GitHub Desktop.
Save pniedzwiedzinski/84677c58f791239e0117479b8c056b11 to your computer and use it in GitHub Desktop.
# 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’).
{ lib, config, pkgs, options, ... }:
{
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
<nixpkgs/nixos/modules/profiles/all-hardware.nix>
<nixpkgs/nixos/modules/profiles/base.nix>
<nixpkgs/nixos/modules/profiles/base.nix>
];
# Use the systemd-boot EFI boot loader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
hardware.enableRedistributableFirmware = true;
# installation-cd-base
console.packages = options.console.packages.default ++ [ pkgs.terminus_font ];
# boot.loader.grub.memtest86.enable = true;
# installation-cd-graphical-base
services.xserver.enable = true;
networking.networkmanager.enable = true;
networking.wireless.enable = lib.mkForce false;
powerManagement.enable = true;
hardware.pulseaudio.enable = true;
# installation-cd-graphical-plasma5
services.xserver = {
desktopManager.plasma5.enable = true;
displayManager = {
sddm.enable = true;
};
};
users.users.kiosk = {
isNormalUser = true;
extraGroups = [ "wheel" ]; # Enable ‘sudo’ for the user.
};
# 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 = "20.03"; # Did you read the comment?
}
# Do not modify this file! It was generated by ‘nixos-generate-config’
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
{ config, lib, pkgs, ... }:
{
imports =
[ <nixpkgs/nixos/modules/installer/scan/not-detected.nix>
];
boot.initrd.availableKernelModules = [ "xhci_pci" "usb_storage" "usbhid" "sd_mod" "sdhci_acpi" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
fileSystems."/" = lib.mkForce
{ device = "/dev/disk/by-uuid/7ee757e6-4f50-4681-9b5b-27c2cb1f84e4";
fsType = "ext4";
};
fileSystems."/boot" = lib.mkForce
{ device = "/dev/disk/by-uuid/5386-B9AE";
fsType = "vfat";
};
swapDevices = lib.mkForce
[ { device = "/dev/disk/by-uuid/8924970e-10bd-4d6f-a137-61d05a886106"; }
];
nix.maxJobs = lib.mkDefault 4;
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment