Skip to content

Instantly share code, notes, and snippets.

@Mindavi
Created May 12, 2021 21:38
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 Mindavi/9a7b6ca67ad19df1d9bbac7644cda8f5 to your computer and use it in GitHub Desktop.
Save Mindavi/9a7b6ca67ad19df1d9bbac7644cda8f5 to your computer and use it in GitHub Desktop.
config file ca-derivations
{ config, pkgs, lib, ... }:
{
imports =
[
#./hardware-configuration.nix
];
# Use the systemd-boot EFI boot loader.
boot.loader.systemd-boot.enable = true;
boot.kernelPackages = pkgs.linuxPackages_latest_hardened;
boot.blacklistedKernelModules = [ "dvb_usb_rtl28xxu" "floppy" ];
networking.hostName = "nixos-asus"; # Define your hostname.
networking.networkmanager.enable = true;
networking.useDHCP = false;
time.timeZone = "Europe/Amsterdam";
environment.systemPackages = with pkgs; [
wget
vim
htop
jq
];
nix = {
package = pkgs.nixFlakes;
useSandbox = true;
extraOptions = ''
experimental-features = ca-derivations
'';
};
programs.bash.enableCompletion = true;
nixpkgs.config.contentAddressedByDefault = true;
networking.firewall.enable = false;
services.xserver.enable = true;
services.xserver.layout = "us";
services.xserver.libinput.enable = true;
services.xserver.displayManager.sddm.enable = true;
services.xserver.desktopManager.plasma5.enable = true;
users.users.test = {
isNormalUser = true;
home = "/home/test";
extraGroups = [ "wheel" "networkmanager" "dialout" ];
initialPassword = "test";
};
system.stateVersion = "20.09";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment