dotfiles
My PC Dotfiles & Websitegit clone https://github.com/maydayv7/dotfiles
modules/hosts/futura.nix (1990B)
1# Futura - Dell Inspiron 11 3000
2{
3 config,
4 inputs,
5 ...
6}: let
7 inherit (config.flake.modules) nixos homeManager;
8 inherit (config) util;
9
10 sharedHmModules =
11 util.map.array [
12 "laptop"
13 "firefox"
14 "office"
15 ]
16 homeManager;
17in {
18 configurations.nixos.futura = {
19 system = "x86_64-linux";
20 module = _: {
21 imports =
22 util.map.array [
23 "navya"
24 "security"
25 "laptop"
26 "office"
27 "flatpak"
28 "gnome"
29 ]
30 nixos
31 ++ util.map.array [
32 "common-pc"
33 "common-pc-laptop"
34 "common-cpu-intel"
35 ]
36 inputs.hardware.nixosModules;
37
38 networking.hostId = builtins.substring 0 8 (builtins.hashString "md5" "futura");
39
40 time.timeZone = "Asia/Kolkata";
41 i18n.defaultLocale = "en_IN";
42 environment.variables."LC_ALL" = "en_IN.UTF-8";
43
44 system = {
45 kernel = "lts";
46 scheme = "efi";
47 fs = {
48 scheme = "simple";
49 disk = "/dev/disk/by-id/disko-placeholder";
50 };
51 };
52
53 hardware.cpu = {
54 model = "intel";
55 cores = 4;
56 };
57
58 # Auto-upgrade
59 system.autoUpgrade = {
60 enable = true;
61 dates = "weekly";
62 flake = "github:maydayv7/dotfiles";
63 };
64
65 # User
66 users.users.navya.extraGroups = [
67 "wheel"
68 "networkmanager"
69 ];
70
71 home-manager.users.navya.imports =
72 sharedHmModules
73 ++ [
74 homeManager.navya
75 homeManager.gnome
76 ];
77
78 services.displayManager.autoLogin = {
79 enable = true;
80 user = "navya";
81 };
82 };
83 };
84
85 configurations.homeManager."navya@futura" = {
86 module = {
87 imports =
88 sharedHmModules
89 ++ [
90 homeManager.navya
91 homeManager.gnome
92 ];
93 home = {
94 username = "navya";
95 homeDirectory = "/home/navya";
96 };
97 };
98 system = "x86_64-linux";
99 };
100}