nixos-configuration/configuration.nix

92 lines
2.2 KiB
Nix
Raw Normal View History

2024-12-26 22:19:23 +01:00
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help).
2024-12-27 21:31:18 +01:00
{
pkgs,
outputs,
2024-12-27 21:31:18 +01:00
...
}:
2024-12-26 22:19:23 +01:00
{
imports = [ ./modules ];
2024-12-26 22:19:23 +01:00
nixpkgs.overlays = [ outputs.overlays.unstable-packages ];
2024-12-26 22:19:23 +01:00
# Bootloader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
# Define a user account. Don't forget to set a password with passwd.
users.users.martin = {
isNormalUser = true;
description = "martin";
2024-12-27 21:31:18 +01:00
extraGroups = [
"networkmanager"
"wheel"
];
2024-12-26 22:19:23 +01:00
};
# Allow unfree packages
nixpkgs.config.allowUnfree = true;
environment.sessionVariables = {
# Tells Electron apps to use Wayland
NIXOS_OZONE_WL = "1";
};
2024-12-26 22:19:23 +01:00
# List packages installed in system profile. To search, run:
# $ nix search wget
environment.systemPackages = with pkgs; [
wget
xdg-utils
xdg-desktop-portal
2024-12-26 22:19:23 +01:00
xdg-desktop-portal-gtk
kdePackages.qtwayland
kdePackages.qtsvg
kdePackages.qt6ct
protonmail-desktop
stremio
fastfetch
freetube
nextcloud-client
discord
nix-prefetch-github # Cmd to get rev and hash from GitHub
gimp
vlc
2024-12-26 22:19:23 +01:00
];
nix.settings.experimental-features = [
"nix-command"
"flakes"
];
2024-12-26 22:19:23 +01:00
# Some programs need SUID wrappers, can be configured further or are
# started in user sessions.
# programs.mtr.enable = true;
programs = {
kdeconnect.enable = true;
2024-12-26 22:19:23 +01:00
};
# List services that you want to enable:
# Enable the OpenSSH daemon.
# services.openssh.enable = true;
services = {
flatpak.enable = true;
xserver.enable = true;
};
qt.enable = true;
2024-12-26 22:19:23 +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. 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 = "24.11"; # Did you read the comment?
}