vortex.nix (2460B)
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 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 | # Vortex - Dell Inspiron 15 5000 { config, inputs, ... }: let inherit (config) util; inherit (config.flake.modules) nixos homeManager; hmModules = util.map.array [ "secrets" "shell-utils" "filesystem" "laptop" "discord" "firefox" "security" "internet" "office" "wine" "hyprland" ] homeManager; in { configurations.nixos.vortex = { system = "x86_64-linux"; module = { config, pkgs, ... }: { imports = util.map.array [ "security" "boot" "filesystem" "laptop" "mobile" "printer" "libvirt" "shell-utils" "prompt" "office" "wine" "hyprland" ] nixos ++ util.map.array ["dell-inspiron-5509"] inputs.hardware.nixosModules; networking.hostId = builtins.substring 0 8 (builtins.hashString "md5" "vortex"); time.timeZone = "Asia/Kolkata"; i18n.defaultLocale = "en_IN"; environment.variables."LC_ALL" = "en_IN.UTF-8"; services.fwupd.enable = true; system = { scheme = "secure"; fs = { scheme = "advanced"; disk = "/dev/disk/by-id/disko-placeholder"; }; kernel = "xanmod"; kernelModules = [ "nvme" "thunderbolt" ]; nix = { index = true; tools = true; }; }; hardware.cpu = { model = "intel"; cores = 8; }; gui = { display = "eDP-1"; wallpaper = "Thread"; fancy = true; }; users.users.v7 = { isNormalUser = true; description = "V 7"; uid = 1000; group = "users"; shell = pkgs.zsh; hashedPasswordFile = config.sops.secrets."v7.secret".path; extraGroups = [ "wheel" "keys" "networkmanager" "adbusers" "lp" "scanner" "kvm" "libvirtd" "input" "video" ]; }; home-manager.users.v7.imports = hmModules ++ [homeManager.v7]; }; }; configurations.homeManager."v7@vortex" = { module = { imports = hmModules ++ [homeManager.v7]; home = { username = "v7"; homeDirectory = "/home/v7"; }; }; system = "x86_64-linux"; }; } |