Verified Commit 983f68b3 authored by Matthias Adamczyk's avatar Matthias Adamczyk
Browse files

Add crapbook

parent af6b4cc8
Pipeline #358 passed with stages
in 1 minute and 14 seconds
{ pkgs, lib, ... }:
{
imports = [
../../common
../../common/desktop.nix
./hardware-configuration.nix
./networking.nix
];
boot.loader.grub = {
enable = true;
version = 2;
device = "/dev/sda";
};
# gnome is way too slow and bloaty for this thing
services.xserver.desktopManager = {
gnome.enable = lib.mkForce false;
mate.enable = lib.mkForce 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 = "21.05"; # 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, modulesPath, ... }:
{
imports =
[ (modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [ "uhci_hcd" "ehci_pci" "ahci" "usb_storage" "sd_mod" "sr_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/d126cd31-4376-47fe-978e-bc0613805613";
fsType = "ext4";
};
swapDevices =
[ { device = "/dev/disk/by-uuid/cf9e9f73-0410-435a-820d-38b14474138a"; }
];
}
{ config, pkgs, ... }:
{
networking = {
hostName = "crapbook";
domain = "local";
# The global useDHCP flag is deprecated, therefore explicitly set to false here.
# Per-interface useDHCP will be mandatory in the future, so this generated config
# replicates the default behaviour.
useDHCP = false;
interfaces.enp7s0.useDHCP = true;
interfaces.wlp4s0.useDHCP = true;
wireless = {
enable = true;
interfaces = ["wlp4s0"];
};
};
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment