2022-05-10 18:00:16 +02:00
|
|
|
{ pkgs, lib, ... }:
|
|
|
|
let
|
|
|
|
theme = pkgs.myThemes.current;
|
|
|
|
in
|
|
|
|
{
|
2021-11-21 14:52:49 +01:00
|
|
|
imports = [ ./modules ];
|
2020-04-08 18:36:58 +02:00
|
|
|
|
2022-08-18 09:53:29 +02:00
|
|
|
boot.tmpOnTmpfs = false;
|
2021-07-18 01:58:38 +02:00
|
|
|
|
2021-11-21 21:50:11 +01:00
|
|
|
home-manager.useGlobalPkgs = true;
|
|
|
|
home-manager.useUserPackages = true;
|
2022-09-09 00:16:11 +02:00
|
|
|
boot.kernelPackages = pkgs.linuxPackages_latest;
|
2021-11-21 21:50:11 +01:00
|
|
|
|
2022-06-18 23:09:21 +02:00
|
|
|
services.xserver.videoDrivers = [
|
|
|
|
# "displaylink"
|
|
|
|
"modesetting"
|
|
|
|
];
|
2022-05-22 15:42:46 +02:00
|
|
|
|
2022-09-09 00:16:11 +02:00
|
|
|
hardware.pulseaudio.enable = lib.mkForce false;
|
|
|
|
|
|
|
|
# rtkit is optional but recommended
|
|
|
|
security.rtkit.enable = true;
|
|
|
|
services.pipewire = {
|
|
|
|
enable = true;
|
|
|
|
alsa.enable = true;
|
|
|
|
alsa.support32Bit = true;
|
|
|
|
pulse.enable = true;
|
|
|
|
jack.enable = true;
|
2022-04-21 13:09:11 +02:00
|
|
|
};
|
|
|
|
|
2021-07-18 01:58:38 +02:00
|
|
|
boot.loader = {
|
2022-06-18 23:09:21 +02:00
|
|
|
# systemd-boot.enable = true;
|
2021-07-18 01:58:38 +02:00
|
|
|
efi = {
|
|
|
|
canTouchEfiVariables = true;
|
|
|
|
# assuming /boot is the mount point of the EFI partition in NixOS (as the installation section recommends).
|
|
|
|
efiSysMountPoint = "/boot";
|
|
|
|
};
|
|
|
|
grub = {
|
|
|
|
# despite what the configuration.nix manpage seems to indicate,
|
|
|
|
# as of release 17.09, setting device to "nodev" will still call
|
|
|
|
# `grub-install` if efiSupport is true
|
|
|
|
# (the devices list is not used by the EFI grub install,
|
|
|
|
# but must be set to some value in order to pass an assert in grub.nix)
|
|
|
|
devices = [ "nodev" ];
|
|
|
|
efiSupport = true;
|
|
|
|
enable = true;
|
|
|
|
# set $FS_UUID to the UUID of the EFI partition
|
|
|
|
extraEntries = ''
|
|
|
|
menuentry "Windows" {
|
|
|
|
insmod part_gpt
|
|
|
|
insmod fat
|
|
|
|
insmod search_fs_uuid
|
|
|
|
insmod chain
|
|
|
|
search --fs-uuid --set=root $FS_UUID
|
|
|
|
chainloader /EFI/Microsoft/Boot/bootmgfw.efi
|
|
|
|
}
|
|
|
|
'';
|
2022-08-16 10:31:45 +02:00
|
|
|
# theme = theme.grub.path;
|
2022-05-10 14:28:36 +02:00
|
|
|
|
2021-07-18 01:58:38 +02:00
|
|
|
version = 2;
|
|
|
|
};
|
|
|
|
};
|
2020-04-08 18:36:58 +02:00
|
|
|
|
|
|
|
# Enable the OpenSSH daemon.
|
|
|
|
services.openssh.enable = true;
|
|
|
|
|
|
|
|
# Enable sound.
|
|
|
|
sound.enable = true;
|
|
|
|
|
2022-07-19 13:03:03 +02:00
|
|
|
system.stateVersion = "19.03";
|
2022-12-09 02:32:25 +01:00
|
|
|
home-manager.users.adrielus.home.stateVersion = "19.03";
|
2021-07-18 01:58:38 +02:00
|
|
|
|
2022-02-20 20:16:17 +01:00
|
|
|
# TODO: put nixpkgs stuff inside their own file
|
2021-11-21 14:33:20 +01:00
|
|
|
nixpkgs.config.allowUnfree = true;
|
2022-01-25 11:26:06 +01:00
|
|
|
nixpkgs.config.allowBroken = true;
|
2020-04-08 18:36:58 +02:00
|
|
|
}
|
|
|
|
|