Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # 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’).
- { config, pkgs, ... }:
- {
- imports =
- [ # Include the results of the hardware scan.
- <nixos-hardware/framework/13-inch/7040-amd>
- ./hardware-configuration.nix
- ];
- hardware.framework.amd-7040.preventWakeOnAC = true; # prevents turning on on power while lid closed
- # Bootloader.
- boot.loader.systemd-boot.enable = true;
- boot.loader.efi.canTouchEfiVariables = true;
- networking.hostName = "nixos"; # Define your hostname.
- # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
- # Configure network proxy if necessary
- # networking.proxy.default = "http://user:password@proxy:port/";
- # networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
- # Enable networking
- networking.networkmanager.enable = true;
- hardware.bluetooth.enable = true; # enables support for Bluetooth
- hardware.bluetooth.powerOnBoot = true; # powers up the default Bluetooth controller on boot
- hardware.opentabletdriver.enable = true;
- services.blueman.enable = true;
- # Set your time zone.
- time.timeZone = "America/New_York";
- # Select internationalisation properties.
- i18n.defaultLocale = "en_US.UTF-8";
- i18n.extraLocaleSettings = {
- LC_ADDRESS = "en_US.UTF-8";
- LC_IDENTIFICATION = "en_US.UTF-8";
- LC_MEASUREMENT = "en_US.UTF-8";
- LC_MONETARY = "en_US.UTF-8";
- LC_NAME = "en_US.UTF-8";
- LC_NUMERIC = "en_US.UTF-8";
- LC_PAPER = "en_US.UTF-8";
- LC_TELEPHONE = "en_US.UTF-8";
- LC_TIME = "en_US.UTF-8";
- };
- # Configure keymap in X11
- services.xserver = {
- xkb.layout = "us";
- xkb.variant = "";
- };
- # user config here
- # ...
- #
- # Allow unfree packages
- nixpkgs.config.allowUnfree = true;
- nix.settings.experimental-features = "nix-command flakes";
- # List packages installed in system profile. To search, run:
- # $ nix search wget
- environment.systemPackages = with pkgs; [
- # editors
- pkgs.vscode-fhs
- pkgs.neovim
- pkgs.obsidian
- # media
- pkgs.firefox
- pkgs.cider
- pkgs.dolphin # files
- pkgs.breeze-icons # icons?
- pkgs.hyprpaper # wallpaper
- pkgs.swaynotificationcenter
- pkgs.libresprite
- pkgs.fprintd
- pkgs.kitty
- pkgs.pipewire
- # System conf
- pkgs.waybar
- pkgs.pavucontrol # audio
- pkgs.pamixer
- pkgs.wev # keycode viewer
- pkgs.xsel # clipboard
- pkgs.brightnessctl
- pkgs.hyprlock
- pkgs.rofi-wayland
- # input
- #pkgs.xorg.xinput
- #pkgs.libinput
- pkgs.networkmanagerapplet # nmtui better?
- pkgs.zsh
- pkgs.git
- pkgs.killall
- # Kde? Why
- pkgs.libsForQt5.qtstyleplugin-kvantum
- pkgs.libsForQt5.qt5ct
- # lua
- pkgs.love
- (lua.withPackages(ps: with ps; [
- busted
- luafilesystem
- luaposix
- ]))
- pkgs.wineWowPackages.wayland
- wget
- #screenshot
- pkgs.grim
- pkgs.slurp
- ];
- programs = {
- hyprland.enable = true;
- zsh.enable = true;
- steam = {
- enable = true;
- remotePlay.openFirewall = true; # Open ports in the firewall for Steam Remote Play
- dedicatedServer.openFirewall = true; # Open ports in the firewall for Source Dedicated Server
- localNetworkGameTransfers.openFirewall = true; # Open ports in the firewall for Steam Local Network Game Transfers
- };
- };
- nixpkgs.config.qt5 = {
- enable = true;
- platformTheme = "qt5ct";
- style = {
- package = pkgs.utterly-nord-plasma;
- name = "Utterly Nord Plasma";
- };
- };
- environment.variables = {
- QT_QPA_PLATFORMTHEME = "qt5ct";
- SDL_VIDEODRIVER = "wayland";
- };
- services.fprintd = {
- enable = true;
- };
- services.getty.autologinUser = "...";
- security.rtkit.enable = true;
- services.pipewire = {
- enable = true;
- alsa.enable = true;
- alsa.support32Bit = true;
- jack.enable = true;
- pulse.enable = true;
- };
- services.fwupd.enable = true; # framework updates
- # downgrade fingerprint scanner
- services.fwupd.package = (import (builtins.fetchTarball {
- url = "https://github.com/NixOS/nixpkgs/archive/bb2009ca185d97813e75736c2b8d1d8bb81bde05.tar.gz";
- sha256 = "sha256:003qcrsq5g5lggfrpq31gcvj82lb065xvr7bpfa8ddsw8x4dnysk";
- }) {
- inherit (pkgs) system;
- }).fwupd;
- fonts = {
- packages = with pkgs; [
- (nerdfonts.override { fonts = [ "JetBrainsMono" ]; })
- ];
- fontconfig.hinting.style = "full";
- };
- # Open ports in the firewall.
- # networking.firewall.allowedTCPPorts = [ ... ];
- # networking.firewall.allowedUDPPorts = [ ... ];
- # Or disable the firewall altogether.
- # networking.firewall.enable = false;
- # 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 = "24.05"; # Did you read the comment?
- }
Advertisement
Add Comment
Please, Sign In to add comment