because apparently i need a git repo
1# old configuration. was still in flake-land, just done wrong.
2
3{ config, lib, pkgs, ... }:
4
5{
6 imports =
7 [ # Include the results of the hardware scan.
8 ./hardware-configuration.nix
9 ./core-configuration.nix
10 ./nonfree.nix
11 ./steam.nix
12 ./ssl.nix
13 ];
14 environment.memoryAllocator.provider = "graphene-hardened"; # BAILIFF! SMACK HIS NUTS!
15 services.udev.packages = [ pkgs.yubikey-personalization ];
16 systemd.services.fprintd = {
17 wantedBy = [ "multi-user.target" ];
18 serviceConfig.Type = "simple";
19 };
20 programs = {
21 nano = {
22 enable = true;
23 nanorc = ''
24 set autoindent
25 set boldtext
26 set constantshow
27 set smarthome
28 set softwrap
29 set tabsize 2
30 set titlecolor blue
31 set statuscolor green
32 set keycolor red
33 set numbercolor blue
34 '';
35 };
36 };
37 services = {
38 fprintd.enable = true;
39 fwupd = {
40 enable = true;
41 daemonSettings.DisabledPlugins = [ "upower" ];
42 };
43 printing = {
44 enable = true;
45 drivers = [ pkgs.hplipWithPlugin ];
46 };
47 avahi = {
48 enable = true;
49 nssmdns4 = true;
50 openFirewall = true;
51 };
52 };
53 # Use the systemd-boot EFI boot loader.
54 boot.loader.systemd-boot.enable = true;
55 boot.loader.efi.canTouchEfiVariables = true;
56
57 networking.hostName = "yaoi"; # Define your hostname.
58 # Pick only one of the below networking options.
59 # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
60 networking.networkmanager.enable = true; # Easiest to use and most distros use this by default.
61
62 # Set your time zone.
63 time.timeZone = "America/Chicago";
64
65 # Configure network proxy if necessary
66 # networking.proxy.default = "http://user:password@proxy:port/";
67 # networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
68
69 # Select internationalisation properties.
70 i18n.defaultLocale = "en_US.UTF-8";
71 console = {
72 font = "Lat2-Terminus16";
73 # keyMap = "us";
74 useXkbConfig = true; # use xkb.options in tty.
75 };
76
77 # Not Enable the X11 windowing system.
78 services.xserver.enable = false;
79 services.displayManager.sddm.enable = true;
80 services.displayManager.sddm.wayland.enable = true;
81 services.desktopManager.plasma6.enable = true;
82
83 services.flatpak.enable = true;
84
85 # Configure keymap in X11
86 services.xserver.xkb.layout = "us";
87 #services.xserver.xkb.options = "eurosign:e,caps:escape";
88
89 # Enable sound.
90 # services.pulseaudio.enable = true;
91 # OR
92 services.pipewire = {
93 enable = true;
94 pulse.enable = true;
95 };
96
97 # Enable touchpad support (enabled default in most desktopManager).
98 # services.libinput.enable = true;
99
100 # Define a user account. Don't forget to set a password with ‘passwd’.
101 users.users.hotsocket = {
102 description = "ur mom";
103 isNormalUser = true;
104 extraGroups = [ "wheel" ]; # Enable ‘sudo’ for the user.
105 };
106 environment.systemPackages = with pkgs; [
107 ungoogled-chromium
108 kdePackages.discover
109 python3
110 fwupd
111 ];
112
113 # Some programs need SUID wrappers, can be configured further or are
114 # started in user sessions.
115 # programs.mtr.enable = true;
116 # programs.gnupg.agent = {
117 # enable = true;
118 # enableSSHSupport = true;
119 # };
120 nix.settings.experimental-features = [ "nix-command" "flakes" ];
121
122 # List services that you want to enable:
123
124 # Enable the OpenSSH daemon.
125 # services.openssh.enable = true;
126
127 # Open ports in the firewall.
128 networking.firewall = rec {
129 allowedTCPPortRanges = [
130 # KDE Connect
131 { from = 1714; to = 1764; }
132 ];
133 allowedUDPPortRanges = allowedTCPPortRanges;
134 };
135 networking.hosts = {
136 "127.0.0.1" = ["fuckyou"];
137 };
138 # networking.firewall.allowedTCPPorts = [ ... ];
139 # networking.firewall.allowedUDPPorts = [ ... ];
140 # Or disable the firewall altogether.
141 # networking.firewall.enable = false;
142
143 # Copy the NixOS configuration file and link it from the resulting system
144 # (/run/current-system/configuration.nix). This is useful in case you
145 # accidentally delete configuration.nix.
146 # system.copySystemConfiguration = true;
147
148 # This option defines the first version of NixOS you have installed on this particular machine,
149 # and is used to maintain compatibility with application data (e.g. databases) created on older NixOS versions.
150 #
151 # Most users should NEVER change this value after the initial install, for any reason,
152 # even if you've upgraded your system to a new NixOS release.
153 #
154 # This value does NOT affect the Nixpkgs version your packages and OS are pulled from,
155 # so changing it will NOT upgrade your system - see https://nixos.org/manual/nixos/stable/#sec-upgrading for how
156 # to actually do that.
157 #
158 # This value being lower than the current NixOS release does NOT mean your system is
159 # out of date, out of support, or vulnerable.
160 #
161 # Do NOT change this value unless you have manually inspected all the changes it would make to your configuration,
162 # and migrated your data accordingly.
163 #
164 # For more information, see `man configuration.nix` or https://nixos.org/manual/nixos/stable/options#opt-system.stateVersion .
165 system.stateVersion = "25.05"; # Did you read the comment?
166
167}
168