-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcommon.nix
38 lines (30 loc) · 915 Bytes
/
common.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
{ inputs, pkgs, lib, config, username, host, ... }: {
imports = [
inputs.sops-nix.nixosModules.sops
./user.nix
./network.nix
./secrets.nix
];
services.gvfs.enable = true; # for Nautilus
programs.nix-ld.enable = true; # to run non-nix executables
nixpkgs.config.allowUnfree = true;
nix.settings = {
experimental-features = "nix-command flakes"; # Enable Flakes
auto-optimise-store = true;
};
networking.networkmanager.enable = true;
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
# User settings
users.mutableUsers = false;
programs.zsh.enable = true;
environment.systemPackages = with pkgs; [
micro
];
environment.variables.EDITOR = "micro";
# Locale
time.timeZone = "Europe/Paris";
console.keyMap = "fr";
# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
system.stateVersion = "23.11";
}