TestUser__01

Untitled

Jul 24th, 2024
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 5.41 KB | Software | 0 0
  1. # Edit this configuration file to define what should be installed on
  2. # your system.  Help is available in the configuration.nix(5) man page
  3. # and in the NixOS manual (accessible by running ‘nixos-help’).
  4.  
  5. { config, pkgs, ... }:
  6.  
  7. {
  8.   imports =
  9.     [ # Include the results of the hardware scan.
  10.       <nixos-hardware/framework/13-inch/7040-amd>
  11.       ./hardware-configuration.nix
  12.     ];
  13.  
  14.   hardware.framework.amd-7040.preventWakeOnAC = true; # prevents turning on on power while lid closed
  15.  
  16.   # Bootloader.
  17.   boot.loader.systemd-boot.enable = true;
  18.   boot.loader.efi.canTouchEfiVariables = true;
  19.  
  20.   networking.hostName = "nixos"; # Define your hostname.
  21.   # networking.wireless.enable = true;  # Enables wireless support via wpa_supplicant.
  22.  
  23.   # Configure network proxy if necessary
  24.   # networking.proxy.default = "http://user:password@proxy:port/";
  25.   # networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
  26.  
  27.   # Enable networking
  28.   networking.networkmanager.enable = true;
  29.  
  30.   hardware.bluetooth.enable = true; # enables support for Bluetooth
  31.   hardware.bluetooth.powerOnBoot = true; # powers up the default Bluetooth controller on boot
  32.   hardware.opentabletdriver.enable = true;
  33.   services.blueman.enable = true;
  34.  
  35.   # Set your time zone.
  36.   time.timeZone = "America/New_York";
  37.  
  38.   # Select internationalisation properties.
  39.   i18n.defaultLocale = "en_US.UTF-8";
  40.  
  41.   i18n.extraLocaleSettings = {
  42.     LC_ADDRESS = "en_US.UTF-8";
  43.     LC_IDENTIFICATION = "en_US.UTF-8";
  44.     LC_MEASUREMENT = "en_US.UTF-8";
  45.     LC_MONETARY = "en_US.UTF-8";
  46.     LC_NAME = "en_US.UTF-8";
  47.     LC_NUMERIC = "en_US.UTF-8";
  48.     LC_PAPER = "en_US.UTF-8";
  49.     LC_TELEPHONE = "en_US.UTF-8";
  50.     LC_TIME = "en_US.UTF-8";
  51.   };
  52.  
  53.   # Configure keymap in X11
  54.   services.xserver = {
  55.     xkb.layout = "us";
  56.     xkb.variant = "";
  57.   };
  58.  
  59.   # user config here
  60.   # ...
  61.   #
  62.  
  63.   # Allow unfree packages
  64.   nixpkgs.config.allowUnfree = true;
  65.  
  66.  nix.settings.experimental-features = "nix-command flakes";
  67.  
  68.   # List packages installed in system profile. To search, run:
  69.   # $ nix search wget
  70.   environment.systemPackages = with pkgs; [
  71.      # editors
  72.      pkgs.vscode-fhs
  73.      pkgs.neovim
  74.      pkgs.obsidian
  75.      
  76.      # media
  77.      pkgs.firefox
  78.      pkgs.cider
  79.      pkgs.dolphin # files
  80.      pkgs.breeze-icons # icons?
  81.      pkgs.hyprpaper # wallpaper
  82.      pkgs.swaynotificationcenter
  83.      pkgs.libresprite
  84.  
  85.      pkgs.fprintd
  86.      pkgs.kitty
  87.      pkgs.pipewire
  88.  
  89.      # System conf
  90.      pkgs.waybar
  91.      pkgs.pavucontrol # audio
  92.      pkgs.pamixer
  93.      pkgs.wev # keycode viewer
  94.      pkgs.xsel # clipboard
  95.      pkgs.brightnessctl
  96.      pkgs.hyprlock
  97.      pkgs.rofi-wayland
  98.  
  99.      # input
  100.      #pkgs.xorg.xinput
  101.      #pkgs.libinput
  102.  
  103.      pkgs.networkmanagerapplet # nmtui better?
  104.      pkgs.zsh
  105.      pkgs.git
  106.      pkgs.killall
  107.  
  108.      # Kde? Why
  109.      pkgs.libsForQt5.qtstyleplugin-kvantum
  110.      pkgs.libsForQt5.qt5ct
  111.  
  112.      # lua
  113.      pkgs.love
  114.      (lua.withPackages(ps: with ps; [
  115.         busted
  116.     luafilesystem
  117.     luaposix
  118.      ]))
  119.  
  120.      pkgs.wineWowPackages.wayland
  121.  
  122.      wget
  123.  
  124.      #screenshot
  125.      pkgs.grim
  126.      pkgs.slurp
  127.   ];
  128.  
  129.   programs = {
  130.      hyprland.enable = true;
  131.      zsh.enable = true;
  132.  
  133.      steam = {
  134.         enable = true;
  135.         remotePlay.openFirewall = true; # Open ports in the firewall for Steam Remote Play
  136.         dedicatedServer.openFirewall = true; # Open ports in the firewall for Source Dedicated Server
  137.         localNetworkGameTransfers.openFirewall = true; # Open ports in the firewall for Steam Local Network Game Transfers
  138.      };
  139.   };
  140.  
  141.   nixpkgs.config.qt5 = {
  142.      enable = true;
  143.      platformTheme = "qt5ct";
  144.      style = {
  145.        package = pkgs.utterly-nord-plasma;
  146.        name = "Utterly Nord Plasma";
  147.      };
  148.   };
  149.   environment.variables = {
  150.      QT_QPA_PLATFORMTHEME = "qt5ct";
  151.      SDL_VIDEODRIVER = "wayland";
  152.   };
  153.   services.fprintd = {
  154.      enable = true;  
  155.   };
  156.  
  157.   services.getty.autologinUser = "...";
  158.  
  159.   security.rtkit.enable = true;
  160.  
  161.   services.pipewire = {
  162.      enable = true;
  163.      alsa.enable = true;
  164.      alsa.support32Bit = true;
  165.      jack.enable = true;
  166.      pulse.enable = true;
  167.   };
  168.  
  169.  services.fwupd.enable = true; # framework updates
  170.   # downgrade fingerprint scanner
  171.   services.fwupd.package = (import (builtins.fetchTarball {
  172.      url = "https://github.com/NixOS/nixpkgs/archive/bb2009ca185d97813e75736c2b8d1d8bb81bde05.tar.gz";
  173.      sha256 = "sha256:003qcrsq5g5lggfrpq31gcvj82lb065xvr7bpfa8ddsw8x4dnysk";
  174.   }) {
  175.      inherit (pkgs) system;
  176.   }).fwupd;
  177.  
  178.   fonts = {
  179.     packages = with pkgs; [
  180.        (nerdfonts.override { fonts = [ "JetBrainsMono" ]; })
  181.     ];
  182.     fontconfig.hinting.style = "full";
  183.   };
  184.  
  185.  
  186.   # Open ports in the firewall.
  187.   # networking.firewall.allowedTCPPorts = [ ... ];
  188.   # networking.firewall.allowedUDPPorts = [ ... ];
  189.   # Or disable the firewall altogether.
  190.   # networking.firewall.enable = false;
  191.  
  192.   # This value determines the NixOS release from which the default
  193.   # settings for stateful data, like file locations and database versions
  194.   # on your system were taken. It‘s perfectly fine and recommended to leave
  195.   # this value at the release version of the first install of this system.
  196.   # Before changing this value read the documentation for this option
  197.   # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
  198.   system.stateVersion = "24.05"; # Did you read the comment?
  199.  
  200. }
  201.  
Advertisement
Add Comment
Please, Sign In to add comment