Guest User

Untitled

a guest
Jan 2nd, 2026
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.35 KB | None | 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. ./hardware-configuration.nix
  11. ];
  12.  
  13. # Bootloader.
  14. boot.loader.systemd-boot.enable = true;
  15. boot.loader.efi.canTouchEfiVariables = true;
  16.  
  17. # Use latest kernel.
  18. boot.kernelPackages = pkgs.linuxPackages_latest;
  19.  
  20. boot.initrd.luks.devices."luks-fc7d3c6c-a430-4ff1-82f5-61f73acff232".device = "/dev/disk/by-uuid/fc7d3c6c-a430-4ff1-82f5-61f73acff232";
  21. networking.hostName = "pocomoke"; # Define your hostname.
  22. # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
  23.  
  24. # Configure network proxy if necessary
  25. # networking.proxy.default = "http://user:password@proxy:port/";
  26. # networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
  27.  
  28. # Enable networking
  29. networking.networkmanager.enable = true;
  30.  
  31. # Set your time zone.
  32. time.timeZone = "America/Chicago";
  33.  
  34. # Select internationalisation properties.
  35. i18n.defaultLocale = "en_US.UTF-8";
  36.  
  37. i18n.extraLocaleSettings = {
  38. LC_ADDRESS = "en_US.UTF-8";
  39. LC_IDENTIFICATION = "en_US.UTF-8";
  40. LC_MEASUREMENT = "en_US.UTF-8";
  41. LC_MONETARY = "en_US.UTF-8";
  42. LC_NAME = "en_US.UTF-8";
  43. LC_NUMERIC = "en_US.UTF-8";
  44. LC_PAPER = "en_US.UTF-8";
  45. LC_TELEPHONE = "en_US.UTF-8";
  46. LC_TIME = "en_US.UTF-8";
  47. };
  48.  
  49. # Enable the X11 windowing system.
  50. # You can disable this if you're only using the Wayland session.
  51. #services.xserver.enable = true;
  52.  
  53. # Enable the KDE Plasma Desktop Environment.
  54. services = {
  55. desktopManager = {
  56. plasma6 = {
  57. enable = true;
  58. };
  59. };
  60. displayManager = {
  61. sddm = {
  62. enable = true;
  63. };
  64. };
  65. };
  66.  
  67. console = {
  68. earlySetup = true;
  69. useXkbConfig = true;
  70. };
  71.  
  72. /*
  73. hardware.printers = {
  74. ensurePrinters = [
  75. {
  76. name = "Brother_HL-6050DN";
  77. location = "Home";
  78. deviceUri = "usb://Brother/HL-6050D_DN%20series?serial=L6J208553";
  79. model = "Brother-HL-6050D_DN-Postscript-Brother.ppd";
  80. ppdOptions = {
  81. PageSize = "Letter";
  82. };
  83. }
  84. ];
  85. };
  86. */
  87. services = {
  88. printing = {
  89. enable = true;
  90. #startWhenNeeded = true;
  91. cups-pdf = {
  92. enable = true;
  93. };
  94. drivers = [
  95. pkgs.brlaser
  96. #(writeTextDir "share/cups/model/yourppd.ppd" (builtins.readFile ./yourppd.ppd))
  97. #(writeTextDir "share/cups/model//var/lib/cups/ppd/Brother-HL-6050D_DN-Postscript-Brother.ppd.ppd" (builtins.readFile ./var/lib/cups/ppd/Brother-HL-6050D_DN-Postscript-Brother.ppd.ppd))
  98. ];
  99. };
  100. xserver = {
  101. enable = true;
  102. xkb = {
  103. layout = "us";
  104. variant = "workman";
  105. };
  106. };
  107. };
  108.  
  109. # Enable sound with pipewire.
  110. #services.pulseaudio.enable = false;
  111. security.rtkit.enable = true;
  112. services.pipewire = {
  113. enable = true;
  114. alsa.enable = true;
  115. alsa.support32Bit = true;
  116. pulse.enable = true;
  117. # If you want to use JACK applications, uncomment this
  118. #jack.enable = true;
  119.  
  120. # use the example session manager (no others are packaged yet so this is enabled by default,
  121. # no need to redefine it in your config for now)
  122. #media-session.enable = true;
  123. };
  124.  
  125. # Enable touchpad support (enabled default in most desktopManager).
  126. # services.xserver.libinput.enable = true;
  127.  
  128. # Define a user account. Don't forget to set a password with ‘passwd’.
  129. users.users.gumby = {
  130. isNormalUser = true;
  131. description = "Lester Flem";
  132. extraGroups = [
  133. "networkmanager"
  134. "wheel"
  135. ];
  136. packages = with pkgs; [
  137. # thunderbird
  138. ];
  139. };
  140.  
  141. # Install firefox.
  142. programs.firefox.enable = true;
  143.  
  144. # Allow unfree packages
  145. nixpkgs = {
  146. config = {
  147. allowUnfree = true;
  148. permittedInsecurePackages = [
  149. #"qtwebengine-5.15.19"
  150. ];
  151. };
  152. };
  153.  
  154. # List packages installed in system profile. To search, run:
  155. # $ nix search wget
  156. environment.systemPackages = with pkgs; [ # Packages to be installed globally.
  157. alacritty
  158. brave
  159. brlaser
  160. #clipgrab # qtwebengine
  161. fastfetch
  162. git
  163. haruna
  164. inxi
  165. kdePackages.falkon
  166. kdePackages.isoimagewriter
  167. kdePackages.kate
  168. kdePackages.kmahjongg
  169. kdePackages.kmines
  170. kdePackages.korganizer
  171. kdePackages.kpat
  172. kdePackages.kshisen
  173. kdePackages.ksquares
  174. kdePackages.ksudoku
  175. kdePackages.kweather
  176. kdePackages.okular
  177. kdePackages.partitionmanager
  178. keepassxc
  179. kitty
  180. libreoffice-qt
  181. mpv
  182. nixd
  183. nixos-generators
  184. nmap
  185. p7zip
  186. pciutils
  187. #smplayer
  188. unetbootin
  189. vlc
  190. yt-dlp
  191. #wget
  192. ];
  193.  
  194. # Some programs need SUID wrappers, can be configured further or are
  195. # started in user sessions.
  196. # programs.mtr.enable = true;
  197. # programs.gnupg.agent = {
  198. # enable = true;
  199. # enableSSHSupport = true;
  200. # };
  201.  
  202. # List services that you want to enable:
  203.  
  204. # Enable the OpenSSH daemon.
  205. # services.openssh.enable = true;
  206.  
  207. # Open ports in the firewall.
  208. # networking.firewall.allowedTCPPorts = [ ... ];
  209. # networking.firewall.allowedUDPPorts = [ ... ];
  210. # Or disable the firewall altogether.
  211. # networking.firewall.enable = false;
  212.  
  213. nix = {
  214. gc = {
  215. automatic = true;
  216. dates = "weekly";
  217. options = "--delete-older-than 30d";
  218. persistent = true;
  219. };
  220. settings = {
  221. auto-optimise-store = true;
  222. experimental-features = [
  223. "nix-command"
  224. "flakes"
  225. ];
  226. };
  227. };
  228.  
  229. zramSwap = {
  230. algorithm = "zstd";
  231. enable = true;
  232. memoryPercent = 50;
  233. priority = 5;
  234. };
  235.  
  236. # This value determines the NixOS release from which the default
  237. # settings for stateful data, like file locations and database versions
  238. # on your system were taken. It‘s perfectly fine and recommended to leave
  239. # this value at the release version of the first install of this system.
  240. # Before changing this value read the documentation for this option
  241. # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
  242. system.stateVersion = "25.05"; # Did you read the comment?
  243.  
  244. }
  245.  
Advertisement
Add Comment
Please, Sign In to add comment