|
6 | 6 | { |
7 | 7 | # bundles essential nixos modules |
8 | 8 | imports = [ |
9 | | - ./keybase.nix |
10 | 9 | ../common.nix |
11 | 10 | ]; |
12 | 11 |
|
|
22 | 21 | keep-derivations = true; |
23 | 22 | }; |
24 | 23 |
|
25 | | - services.syncthing = { |
26 | | - enable = true; |
27 | | - user = config.user.name; |
28 | | - group = "users"; |
29 | | - openDefaultPorts = true; |
30 | | - dataDir = config.user.home; |
31 | | - }; |
32 | | - |
33 | | - environment.systemPackages = with pkgs; [ |
34 | | - vscode |
35 | | - brave |
36 | | - gnome-tweaks |
37 | | - ]; |
38 | | - |
39 | | - hm = |
40 | | - { ... }: |
41 | | - { |
42 | | - imports = [ ../home-manager/gnome.nix ]; |
43 | | - }; |
44 | | - |
45 | | - # Define a user account. Don't forget to set a password with ‘passwd’. |
46 | 24 | users = { |
47 | 25 | defaultUserShell = pkgs.zsh; |
48 | | - mutableUsers = false; |
49 | | - users = { |
50 | | - "${config.user.name}" = { |
51 | | - isNormalUser = true; |
52 | | - extraGroups = [ |
53 | | - "sudo" |
54 | | - "wheel" |
55 | | - "networkmanager" |
56 | | - ]; # Enable ‘sudo’ for the user. |
57 | | - hashedPassword = "$6$1kR9R2U/NA0.$thN8N2sTo7odYaoLhipeuu5Ic4CS7hKDt1Q6ClP9y0I3eVMaFmo.dZNpPfdwNitkElkaLwDVsGpDuM2SO2GqP/"; |
58 | | - }; |
59 | | - }; |
60 | 26 | }; |
61 | 27 |
|
62 | | - networking.hostName = "Phil"; # Define your hostname. |
63 | | - networking.networkmanager.enable = true; |
64 | | - |
65 | | - # Use the GRUB 2 boot loader. |
66 | | - boot.loader.grub.enable = true; |
67 | | - # Define on which hard drive you want to install Grub. |
68 | | - boot.loader.grub.device = "/dev/sda"; # or "nodev" for efi only |
69 | | - # boot.loader.grub.efiSupport = true; |
70 | | - # boot.loader.grub.efiInstallAsRemovable = true; |
71 | | - # boot.loader.efi.efiSysMountPoint = "/boot/efi"; |
72 | | - |
73 | | - # The global useDHCP flag is deprecated, therefore explicitly set to false here. |
74 | | - # Per-interface useDHCP will be mandatory in the future, so this generated config |
75 | | - # replicates the default behaviour. |
76 | | - networking.useDHCP = false; |
77 | | - networking.interfaces.enp0s31f6.useDHCP = true; |
78 | | - networking.interfaces.wlp4s0.useDHCP = true; |
79 | | - |
80 | | - # Configure network proxy if necessary |
81 | | - # networking.proxy.default = "http://user:password@proxy:port/"; |
82 | | - # networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain"; |
83 | | - |
84 | | - # Select internationalisation properties. |
85 | 28 | i18n.defaultLocale = "en_US.UTF-8"; |
86 | | - # console = { |
87 | | - # font = pkgs.jetbrains-mono; |
88 | | - # keyMap = "us"; |
89 | | - # }; |
90 | | - |
91 | | - # Set your time zone. |
92 | | - # time.timeZone = "EST"; |
93 | | - services.geoclue2.enable = true; |
94 | | - services.localtimed.enable = true; |
95 | 29 |
|
96 | | - # Some programs need SUID wrappers, can be configured further or are |
97 | | - # started in user sessions. |
98 | | - # programs.mtr.enable = true; |
99 | 30 | programs.gnupg.agent = { |
100 | 31 | enable = true; |
101 | 32 | enableSSHSupport = true; |
102 | | - pinentryPackage = pkgs.pinentry-gnome3; |
103 | 33 | }; |
104 | 34 |
|
105 | | - # List services that you want to enable: |
106 | | - |
107 | 35 | # Enable the OpenSSH daemon. |
108 | 36 | services.openssh.enable = true; |
109 | | - |
110 | | - # Open ports in the firewall. |
111 | | - # networking.firewall.allowedTCPPorts = [ ... ]; |
112 | | - # networking.firewall.allowedUDPPorts = [ ... ]; |
113 | | - # Or disable the firewall altogether. |
114 | | - # networking.firewall.enable = false; |
115 | | - |
116 | | - # Enable CUPS to print documents. |
117 | | - services.printing.enable = true; |
118 | | - |
119 | | - services.pulseaudio.enable = false; |
120 | | - |
121 | | - # Enable touchpad support. |
122 | | - services.libinput.enable = true; |
123 | | - |
124 | | - # Enable the X11 windowing system. |
125 | | - services.xserver.enable = true; |
126 | | - services.xserver.xkb.layout = "us"; |
127 | | - services.desktopManager.gnome.enable = true; |
128 | | - services.displayManager.gdm.enable = true; |
129 | | - |
130 | | - # This value determines the NixOS release from which the default |
131 | | - # settings for stateful data, like file locations and database versions |
132 | | - # on your system were taken. It‘s perfectly fine and recommended to leave |
133 | | - # this value at the release version of the first install of this system. |
134 | | - # Before changing this value read the documentation for this option |
135 | | - # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html). |
136 | | - system.stateVersion = "24.11"; |
137 | 37 | } |
0 commit comments