dotfiles
My PC Dotfiles & Websitegit clone https://github.com/maydayv7/dotfiles
modules/hosts/install.nix (1540B)
1# Install Media
2{
3 config,
4 inputs,
5 ...
6}: let
7 inherit (config) util;
8 inherit (config.flake) files;
9in {
10 configurations.nixos.install = {
11 system = "x86_64-linux";
12 module = {
13 lib,
14 pkgs,
15 ...
16 }: {
17 imports = [
18 (import ../desktop/_install.nix {inherit util files inputs;})
19
20 # Disabled Modules
21 (
22 {lib, ...}: {
23 sops.secrets = lib.mkForce {};
24 home-manager.sharedModules = lib.mkForce [];
25 }
26 )
27 ];
28
29 # Environment
30 networking.hostId = builtins.substring 0 8 (builtins.hashString "md5" "install");
31 system.kernel = "lts";
32 boot.loader.grub.device = lib.mkDefault "nodev";
33 fileSystems."/".fsType = "tmpfs";
34 environment.systemPackages = [pkgs.custom.install];
35 image.modules.iso = {
36 image.baseName = lib.mkForce "install";
37 system.switch.enable = false;
38 isoImage = {
39 makeBiosBootable = true;
40 makeEfiBootable = true;
41 makeUsbBootable = true;
42 };
43 };
44
45 # Localization
46 time.timeZone = "Asia/Kolkata";
47 i18n.defaultLocale = "en_IN";
48
49 # Default User
50 users.users.nixos = {
51 isNormalUser = true;
52 description = "Default User";
53 extraGroups = ["wheel"];
54 initialHashedPassword = lib.fileContents ../../secrets/passwords/default;
55 };
56
57 # Automatic Login
58 services.displayManager.autoLogin = {
59 enable = true;
60 user = "nixos";
61 };
62 };
63 };
64}