-
Notifications
You must be signed in to change notification settings - Fork 0
/
default.nix
48 lines (41 loc) · 922 Bytes
/
default.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
39
40
41
42
43
44
45
46
47
48
{
inputs,
config,
lib,
pkgs,
...
}:
with lib;
with lib.my;
let
system = "x86_64-linux";
in {
imports = [inputs.home-manager.nixosModules.home-manager]
++ inputs.nix-modules.nixosModules
++ (mapModulesRec' (toString ./modules) import);
environment.variables.NIXPKGS_ALLOW_UNFREE = "1";
console = {
font = "Lat2-Terminus16";
keyMap = "us";
};
i18n.defaultLocale = "en_US.UTF-8";
environment.systemPackages = with pkgs; [ git vim ];
dotfiles.dir = (findFirst pathExists (toString ./.) [
"${config.user.home}/.config/.dotfiles"
]);
nix = {
gc = {
automatic = true;
dates = "monthly";
options = "--delete-older-than 30d";
};
settings = {
auto-optimise-store = true;
};
package = pkgs.nixFlakes;
extraOptions = ''
experimental-features = nix-command flakes
'';
};
system.stateVersion = "23.11";
}