me like nix
1{ config, pkgs, ... }:
2
3{
4 imports =
5 [ # Include the results of the hardware scan.
6 ./hardware-configuration.nix
7 # home-manager is now imported via the flake's modules list
8 ];
9
10 nix.settings.experimental-features = [ "nix-command" "flakes" ];
11
12 # Bootloader.
13 boot.loader.systemd-boot.enable = true;
14 boot.loader.efi.canTouchEfiVariables = true;
15
16 # Use latest kernel.
17 boot.kernelPackages = pkgs.linuxPackages_latest;
18
19 networking.hostName = "nixos"; # Define your hostname.
20 # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
21
22 # Configure network proxy if necessary
23 # networking.proxy.default = "http://user:password@proxy:port/";
24 # networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
25
26 # Enable networking
27 networking.networkmanager.enable = true;
28
29 # Set your time zone.
30 time.timeZone = "America/New_York";
31
32 # Select internationalisation properties.
33 i18n.defaultLocale = "en_US.UTF-8";
34
35 i18n.extraLocaleSettings = {
36 LC_ADDRESS = "en_US.UTF-8";
37 LC_IDENTIFICATION = "en_US.UTF-8";
38 LC_MEASUREMENT = "en_US.UTF-8";
39 LC_MONETARY = "en_US.UTF-8";
40 LC_NAME = "en_US.UTF-8";
41 LC_NUMERIC = "en_US.UTF-8";
42 LC_PAPER = "en_US.UTF-8";
43 LC_TELEPHONE = "en_US.UTF-8";
44 LC_TIME = "en_US.UTF-8";
45 };
46
47
48 programs.hyprland = {
49 enable = true;
50 xwayland.enable = true;
51 };
52
53
54 services.greetd = {
55 enable = true;
56 settings = {
57 default_session = {
58 command = "${pkgs.hyprland}/bin/Hyprland";
59 user = "sean"; # Your username
60 };
61 };
62 # Example with regreet (graphical)
63 package = pkgs.greetd.regreet;
64 # Or tuigreet (console)
65 # package = pkgs.greetd.tuigreet;
66 };
67
68 xdg.portal = {
69 enable = true;
70 wlr.enable = true;
71 extraPortals = [ pkgs.xdg-desktop-portal-gtk ];
72 };
73
74
75
76
77 # Enable CUPS to print documents.
78 services.printing.enable = true;
79
80 # Enable sound with pipewire.
81 services.pulseaudio.enable = false;
82 security.rtkit.enable = true;
83 services.pipewire = {
84 enable = true;
85 alsa.enable = true;
86 alsa.support32Bit = true;
87 pulse.enable = true;
88 # If you want to use JACK applications, uncomment this
89 #jack.enable = true;
90
91 # use the example session manager (no others are packaged yet so this is enabled by default,
92 # no need to redefine it in your config for now)
93 #media-session.enable = true;
94 };
95
96 # Enable touchpad support (enabled default in most desktopManager).
97 # services.xserver.libinput.enable = true;
98
99 # Define a user account. Don't forget to set a password with ‘passwd’.
100 users.users.sean = {
101 isNormalUser = true;
102 description = "Sean Aye";
103 extraGroups = [ "networkmanager" "wheel" ];
104 shell = pkgs.fish;
105 };
106 home-manager.users.sean = { pkgs, ...}: {
107 home.packages = [
108 pkgs.atool
109 pkgs.httpie
110 pkgs.helix
111 pkgs.jujutsu
112 ];
113 programs.jujutsu = {
114 enable = true;
115 settings = {
116 user = {
117 email = "hello@seanaye.ca";
118 name = "Sean Aye";
119 };
120 };
121 };
122 home.sessionVariables = {
123 EDITOR = "hx";
124 VISUAL = "hx";
125 SUDO_EDITOR = "hx";
126 };
127 programs.home-manager.enable = true;
128 programs.helix.enable = true;
129 programs.fish = {
130 enable = true;
131 interactiveShellInit = ''
132 set fish_greeting
133 '';
134 };
135 programs.starship = {
136 enable = true;
137 enableFishIntegration = true;
138 };
139
140
141 home.stateVersion = "25.05";
142 };
143
144 # Install firefox.
145 programs.firefox.enable = true;
146 programs.fish.enable = true;
147
148 programs._1password.enable = true;
149 programs._1password-gui = {
150 enable = true;
151 polkitPolicyOwners = ["sean"];
152 };
153
154 programs.steam = {
155 enable = true;
156 };
157
158
159 # Allow unfree packages
160 nixpkgs.config.allowUnfree = true;
161
162 # List packages installed in system profile. To search, run:
163 # $ nix search wget
164 environment.systemPackages = with pkgs; [
165 git
166 wl-clipboard
167 ];
168 environment.variables = {
169 EDITOR = "hx";
170 VISUAL = "hx";
171 SUDO_EDITOR = "hx";
172 };
173
174
175 # Some programs need SUID wrappers, can be configured further or are
176 # started in user sessions.
177 # programs.mtr.enable = true;
178 # programs.gnupg.agent = {
179 # enable = true;
180 # enableSSHSupport = true;
181 # };
182
183 # List services that you want to enable:
184
185 # Enable the OpenSSH daemon.
186 # services.openssh.enable = true;
187
188 # Open ports in the firewall.
189 # networking.firewall.allowedTCPPorts = [ ... ];
190 # networking.firewall.allowedUDPPorts = [ ... ];
191 # Or disable the firewall altogether.
192 # networking.firewall.enable = false;
193
194 # This value determines the NixOS release from which the default
195 # settings for stateful data, like file locations and database versions
196 # on your system were taken. It‘s perfectly fine and recommended to leave
197 # this value at the release version of the first install of this system.
198 # Before changing this value read the documentation for this option
199 # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
200 system.stateVersion = "25.05"; # Did you read the comment?
201
202}