nixos-old/configuration.nix

180 lines
4.2 KiB
Nix
Raw Normal View History

2023-07-08 14:01:56 +00:00
{ pkgs, ... }: {
2023-02-22 11:56:15 +00:00
imports = [
<home-manager/nixos>
./hardware-configuration.nix
./packages.nix
./home.nix
./user.nix
./services.nix
./programs.nix
./disks.nix
./defaults.nix
];
2022-10-26 09:28:37 +00:00
2023-02-28 09:33:29 +00:00
nix.settings = {
2023-07-08 14:01:56 +00:00
substituters = [ "https://helix.cachix.org" ];
trusted-public-keys =
[ "helix.cachix.org-1:ejp9KQpR1FBI2onstMQ34yogDm4OgU2ru6lIwPvuCVs=" ];
2023-02-28 09:33:29 +00:00
};
2023-02-28 01:09:08 +00:00
nix.settings.experimental-features = [ "nix-command" "flakes" ];
2022-11-26 16:09:20 +00:00
# kernel
boot.kernelPackages = pkgs.linuxPackages_latest;
2022-10-24 12:31:51 +00:00
# Bootloader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
boot.loader.efi.efiSysMountPoint = "/boot/efi";
2023-01-06 01:42:14 +00:00
boot.supportedFilesystems = [ "ntfs" ];
2022-11-05 11:15:01 +00:00
hardware = {
opengl = {
enable = true;
driSupport = true;
2023-07-27 11:46:27 +00:00
driSupport32Bit = true;
extraPackages32 = with pkgs; [
intel-media-driver
vaapiIntel
2023-07-29 12:41:41 +00:00
vaapiVdpau
libvdpau-va-gl
2023-07-27 11:46:27 +00:00
];
extraPackages = with pkgs; [
intel-media-driver
vaapiIntel
vaapiVdpau
libvdpau-va-gl
2023-07-27 11:46:27 +00:00
mesa.drivers
2022-11-05 11:15:01 +00:00
];
};
};
2022-11-26 13:35:40 +00:00
programs.fish.enable = true;
programs.fish.promptInit = ''
any-nix-shell fish --info-right | source
'';
2023-07-08 14:01:56 +00:00
xdg.portal = {
enable = true;
wlr.enable = true;
};
2022-11-15 18:37:12 +00:00
2022-10-24 16:40:04 +00:00
# hostname
networking.hostName = "bat"; # Define your hostname.
2022-10-24 12:31:51 +00:00
# Enable networking
networking.networkmanager.enable = true;
# Set your time zone.
time.timeZone = "Europe/Berlin";
# Select internationalisation properties.
i18n.defaultLocale = "en_US.utf8";
i18n.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-10-30 19:46:47 +00:00
# xserver options
2022-10-24 12:31:51 +00:00
services.xserver = {
2023-02-24 15:34:20 +00:00
wacom.enable = true;
2022-10-30 20:57:36 +00:00
displayManager = {
2022-11-19 11:26:53 +00:00
startx.enable = true;
2023-09-04 15:36:05 +00:00
defaultSession = "none+sway";
2022-10-30 20:57:36 +00:00
};
2022-10-30 19:46:47 +00:00
enable = true;
2022-10-24 12:31:51 +00:00
layout = "us";
2022-11-04 14:04:17 +00:00
xkbVariant = "alt-intl";
2022-11-05 11:27:26 +00:00
2022-10-31 07:53:46 +00:00
libinput = {
enable = true;
mouse = {
accelProfile = "flat";
accelSpeed = "1.0";
};
};
2022-10-24 12:31:51 +00:00
};
# Configure console keymap
2023-03-23 18:19:57 +00:00
console = {
# earlySetup = true;
keyMap = "us";
# font = config.font.mono;
};
2022-10-24 12:31:51 +00:00
# Enable CUPS to print documents.
2022-10-30 23:43:30 +00:00
# services.printing.enable = true;
programs.seahorse.enable = true;
2022-10-24 12:31:51 +00:00
# Enable sound with pipewire.
sound.enable = true;
hardware.pulseaudio.enable = false;
2022-10-31 15:45:04 +00:00
# enable bluetooth
hardware.bluetooth.enable = true;
2022-10-24 12:31:51 +00:00
security.rtkit.enable = true;
2023-03-09 12:04:23 +00:00
security.please.enable = true;
2023-03-23 18:19:57 +00:00
2022-10-24 12:31:51 +00:00
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
2023-02-28 18:20:19 +00:00
wireplumber.enable = true;
2023-07-08 14:01:56 +00:00
jack.enable = true;
2022-10-24 12:31:51 +00:00
# use the example session manager (no others are packaged yet so this is enabled by default,
# no need to redefine it in your config for now)
#media-session.enable = true;
};
# Allow unfree packages
nixpkgs.config.allowUnfree = true;
# Some programs need SUID wrappers, can be configured further or are
# started in user sessions.
# programs.mtr.enable = true;
# programs.gnupg.agent = {
# enable = true;
# enableSSHSupport = true;
# };
# vim
environment.variables.EDITOR = "nvim";
programs.neovim.enable = true;
programs.neovim.viAlias = true;
2022-12-08 11:37:17 +00:00
programs.neovim.vimAlias = true;
2022-10-24 12:31:51 +00:00
# wireguard settings
networking.firewall = {
2022-12-08 11:19:42 +00:00
allowedUDPPorts = [ 51820 ];
enable = true;
2022-10-24 12:31:51 +00: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. Its 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?
2022-10-29 17:36:24 +00:00
programs.dconf.enable = true;
2023-02-22 11:56:15 +00:00
2023-02-03 09:35:11 +00:00
# vars
2023-02-22 11:56:15 +00:00
environment.variables = { MOZ_USE_XINPUT2 = "DEFAULT=1"; };
2023-05-28 11:52:25 +00:00
2023-07-08 14:01:56 +00:00
nixpkgs.config.permittedInsecurePackages = [ "python-2.7.18.6" ];
2022-10-24 12:31:51 +00:00
}