2023-05-11 07:51:58 +02:00
|
|
|
|
# edit this configuration file to define what should be installed on
|
|
|
|
|
# your system. help is available in the configuration.nix(5) man page
|
2022-11-11 13:34:00 +01:00
|
|
|
|
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
|
|
|
|
|
2024-03-07 10:39:13 +01:00
|
|
|
|
{ config, pkgs, lib, ... }:
|
2022-11-11 13:34:00 +01:00
|
|
|
|
|
|
|
|
|
{
|
2023-02-01 19:56:59 +01:00
|
|
|
|
imports = [
|
|
|
|
|
# Include the results of the hardware scan.
|
|
|
|
|
./hardware-configuration.nix
|
2022-11-11 13:34:00 +01:00
|
|
|
|
|
2023-02-01 19:56:59 +01:00
|
|
|
|
./cachix.nix
|
2023-02-02 15:24:17 +01:00
|
|
|
|
|
2023-02-05 14:11:22 +01:00
|
|
|
|
./web-development
|
2023-02-01 19:56:59 +01:00
|
|
|
|
];
|
2022-11-11 13:34:00 +01:00
|
|
|
|
|
2023-02-01 19:56:59 +01:00
|
|
|
|
boot = {
|
|
|
|
|
loader = {
|
2023-12-27 15:06:04 +01:00
|
|
|
|
systemd-boot = {
|
|
|
|
|
enable = true;
|
|
|
|
|
consoleMode = "max";
|
|
|
|
|
};
|
|
|
|
|
|
2023-02-01 19:56:59 +01:00
|
|
|
|
efi = {
|
|
|
|
|
canTouchEfiVariables = true;
|
|
|
|
|
efiSysMountPoint = "/boot/efi";
|
|
|
|
|
};
|
|
|
|
|
};
|
2022-11-11 13:34:00 +01:00
|
|
|
|
|
2023-02-15 16:42:27 +01:00
|
|
|
|
initrd = {
|
|
|
|
|
# Setup keyfile
|
|
|
|
|
secrets = {
|
|
|
|
|
"/crypto_keyfile.bin" = null;
|
|
|
|
|
};
|
|
|
|
|
luks.devices."luks-77a26fd0-f3c7-4eca-be5e-dba6b6c66e4f" = {
|
|
|
|
|
device = "/dev/disk/by-uuid/77a26fd0-f3c7-4eca-be5e-dba6b6c66e4f";
|
|
|
|
|
keyFile = "/crypto_keyfile.bin";
|
|
|
|
|
};
|
2023-02-01 19:56:59 +01:00
|
|
|
|
};
|
2023-02-01 19:19:43 +01:00
|
|
|
|
};
|
|
|
|
|
|
2022-11-11 13:34:00 +01:00
|
|
|
|
networking = {
|
2023-02-01 19:56:59 +01:00
|
|
|
|
hostName = "hikari"; # Define your hostname.
|
|
|
|
|
|
|
|
|
|
# Enable networking
|
|
|
|
|
networkmanager.enable = true;
|
2023-03-01 08:54:11 +01:00
|
|
|
|
|
|
|
|
|
extraHosts = builtins.readFile ./files/hosts;
|
2023-02-01 19:56:59 +01:00
|
|
|
|
};
|
2022-11-11 13:34:00 +01:00
|
|
|
|
|
2023-02-24 11:52:11 +01:00
|
|
|
|
documentation = {
|
2023-05-11 07:52:16 +02:00
|
|
|
|
dev.enable = false;
|
|
|
|
|
doc.enable = false;
|
2023-02-24 11:52:11 +01:00
|
|
|
|
info.enable = false;
|
2023-05-11 07:52:16 +02:00
|
|
|
|
man.enable = true;
|
|
|
|
|
nixos.enable = true;
|
2023-02-24 11:52:11 +01:00
|
|
|
|
};
|
|
|
|
|
|
2023-02-01 19:56:59 +01:00
|
|
|
|
programs = {
|
|
|
|
|
# Enable network manager applet
|
2023-02-27 13:52:38 +01:00
|
|
|
|
nm-applet.enable = true;
|
2023-02-01 19:56:59 +01:00
|
|
|
|
dconf.enable = true;
|
|
|
|
|
};
|
2023-02-01 19:19:43 +01:00
|
|
|
|
|
2022-11-11 13:34:00 +01:00
|
|
|
|
# Set your time zone.
|
|
|
|
|
time.timeZone = "Europe/Berlin";
|
|
|
|
|
|
|
|
|
|
# Select internationalisation properties.
|
2023-02-01 19:56:59 +01:00
|
|
|
|
i18n = {
|
|
|
|
|
defaultLocale = "en_US.utf8";
|
|
|
|
|
extraLocaleSettings = {
|
|
|
|
|
LC_ADDRESS = "de_DE.utf8";
|
|
|
|
|
LC_IDENTIFICATION = "de_DE.utf8";
|
|
|
|
|
LC_MEASUREMENT = "de_DE.utf8";
|
|
|
|
|
LC_MONETARY = "de_DE.utf8";
|
|
|
|
|
LC_NAME = "de_DE.utf8";
|
|
|
|
|
LC_NUMERIC = "de_DE.utf8";
|
|
|
|
|
LC_PAPER = "de_DE.utf8";
|
|
|
|
|
LC_TELEPHONE = "de_DE.utf8";
|
|
|
|
|
LC_TIME = "de_DE.utf8";
|
|
|
|
|
};
|
2022-11-11 13:34:00 +01:00
|
|
|
|
};
|
|
|
|
|
|
2024-03-07 10:39:13 +01:00
|
|
|
|
services = {
|
|
|
|
|
# Enable the X11 windowing system.
|
|
|
|
|
xserver = {
|
|
|
|
|
enable = true;
|
2023-02-01 19:56:59 +01:00
|
|
|
|
|
2024-03-07 10:39:13 +01:00
|
|
|
|
# Configure keymap in X11
|
|
|
|
|
xkb = {
|
|
|
|
|
layout = "us";
|
|
|
|
|
variant = "";
|
|
|
|
|
};
|
2023-02-01 19:56:59 +01:00
|
|
|
|
|
2024-03-07 10:39:13 +01:00
|
|
|
|
# Enable the LXQT Desktop Environment.
|
|
|
|
|
desktopManager.lxqt.enable = true;
|
2023-02-01 19:56:59 +01:00
|
|
|
|
|
2024-03-07 10:39:13 +01:00
|
|
|
|
displayManager = {
|
2024-04-15 08:45:09 +02:00
|
|
|
|
lightdm.enable = true;
|
2024-03-07 10:39:13 +01:00
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
2024-04-15 08:45:09 +02:00
|
|
|
|
displayManager = {
|
|
|
|
|
autoLogin = {
|
|
|
|
|
enable = true;
|
|
|
|
|
user = "daniels";
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
2024-03-07 10:39:13 +01:00
|
|
|
|
dnsmasq = {
|
|
|
|
|
enable = true;
|
|
|
|
|
settings = {
|
|
|
|
|
server = config.networking.nameservers;
|
2023-02-01 19:56:59 +01:00
|
|
|
|
};
|
|
|
|
|
};
|
2022-11-11 13:34:00 +01:00
|
|
|
|
|
2024-03-07 10:39:13 +01:00
|
|
|
|
# Enable CUPS to print documents.
|
|
|
|
|
printing.enable = false;
|
|
|
|
|
|
|
|
|
|
pipewire = {
|
|
|
|
|
enable = true;
|
|
|
|
|
alsa.enable = true;
|
|
|
|
|
alsa.support32Bit = true;
|
|
|
|
|
pulse.enable = true;
|
|
|
|
|
};
|
|
|
|
|
};
|
2022-11-11 13:34:00 +01:00
|
|
|
|
|
|
|
|
|
# Enable sound with pipewire.
|
|
|
|
|
sound.enable = true;
|
|
|
|
|
hardware.pulseaudio.enable = false;
|
|
|
|
|
security.rtkit.enable = true;
|
|
|
|
|
|
|
|
|
|
# Define a user account. Don't forget to set a password with ‘passwd’.
|
|
|
|
|
users.users.daniels = {
|
|
|
|
|
isNormalUser = true;
|
|
|
|
|
description = "Daniel Siepmann";
|
|
|
|
|
extraGroups = [ "networkmanager" "wheel" "video" ];
|
|
|
|
|
packages = with pkgs; [
|
|
|
|
|
i3lock
|
2023-02-05 15:59:57 +01:00
|
|
|
|
xsel
|
2022-11-11 13:34:00 +01:00
|
|
|
|
];
|
|
|
|
|
};
|
|
|
|
|
|
2024-03-07 10:39:13 +01:00
|
|
|
|
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
|
|
|
|
|
"broadcom-sta"
|
2024-04-30 17:53:14 +02:00
|
|
|
|
"facetimehd-firmware"
|
2024-03-07 10:39:13 +01:00
|
|
|
|
];
|
2022-11-11 13:34:00 +01:00
|
|
|
|
|
|
|
|
|
# List packages installed in system profile. To search, run:
|
|
|
|
|
# $ nix search wget
|
|
|
|
|
environment.systemPackages = with pkgs; [
|
2023-02-01 19:56:59 +01:00
|
|
|
|
vim
|
2023-02-01 19:19:43 +01:00
|
|
|
|
git
|
2022-11-11 13:34:00 +01:00
|
|
|
|
xorg.xbacklight
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
environment.variables = {
|
|
|
|
|
EDITOR = "vim";
|
|
|
|
|
};
|
|
|
|
|
|
2023-02-05 21:33:56 +01:00
|
|
|
|
security = {
|
|
|
|
|
sudo.execWheelOnly = true;
|
|
|
|
|
};
|
|
|
|
|
|
2022-11-11 13:34:00 +01:00
|
|
|
|
# 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 = "22.05"; # Did you read the comment?
|
|
|
|
|
}
|