❄️ My personnal NixOS configuration
nix-flake nixos-configuration linux dotfiles flake nix nix-config nixos nixos-flake linux-desktop
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

「✨」 feat: added vm :D

adjoly 23467004 28a19c71

+197 -18
+40 -17
flake.lock
··· 320 320 "type": "github" 321 321 } 322 322 }, 323 + "nixlib": { 324 + "locked": { 325 + "lastModified": 1736643958, 326 + "narHash": "sha256-tmpqTSWVRJVhpvfSN9KXBvKEXplrwKnSZNAoNPf/S/s=", 327 + "owner": "nix-community", 328 + "repo": "nixpkgs.lib", 329 + "rev": "1418bc28a52126761c02dd3d89b2d8ca0f521181", 330 + "type": "github" 331 + }, 332 + "original": { 333 + "owner": "nix-community", 334 + "repo": "nixpkgs.lib", 335 + "type": "github" 336 + } 337 + }, 338 + "nixos-generators": { 339 + "inputs": { 340 + "nixlib": "nixlib", 341 + "nixpkgs": [ 342 + "nixpkgs" 343 + ] 344 + }, 345 + "locked": { 346 + "lastModified": 1751903740, 347 + "narHash": "sha256-PeSkNMvkpEvts+9DjFiop1iT2JuBpyknmBUs0Un0a4I=", 348 + "owner": "nix-community", 349 + "repo": "nixos-generators", 350 + "rev": "032decf9db65efed428afd2fa39d80f7089085eb", 351 + "type": "github" 352 + }, 353 + "original": { 354 + "owner": "nix-community", 355 + "repo": "nixos-generators", 356 + "type": "github" 357 + } 358 + }, 323 359 "nixos-hardware": { 324 360 "locked": { 325 361 "lastModified": 1736609484, ··· 447 483 "type": "github" 448 484 } 449 485 }, 450 - "nixpkgs_4": { 451 - "locked": { 452 - "lastModified": 1754278406, 453 - "narHash": "sha256-jvIQTMN5EzoOP5RaGztpVese8a3wqy0M/h6tNzycW28=", 454 - "owner": "NixOS", 455 - "repo": "nixpkgs", 456 - "rev": "6a489c9482ca676ce23c0bcd7f2e1795383325fa", 457 - "type": "github" 458 - }, 459 - "original": { 460 - "owner": "NixOS", 461 - "ref": "nixpkgs-unstable", 462 - "repo": "nixpkgs", 463 - "type": "github" 464 - } 465 - }, 466 486 "nixvim": { 467 487 "inputs": { 468 488 "flake-parts": "flake-parts_2", 469 - "nixpkgs": "nixpkgs_4", 489 + "nixpkgs": [ 490 + "nixpkgs" 491 + ], 470 492 "nuschtosSearch": "nuschtosSearch", 471 493 "systems": "systems_2" 472 494 }, ··· 604 626 "home-manager": "home-manager", 605 627 "hyprland-contrib": "hyprland-contrib", 606 628 "lanzaboote": "lanzaboote", 629 + "nixos-generators": "nixos-generators", 607 630 "nixos-hardware": "nixos-hardware", 608 631 "nixos-wsl": "nixos-wsl", 609 632 "nixpkgs": "nixpkgs_3",
+67 -1
flake.nix
··· 10 10 nixos-hardware, 11 11 disko, 12 12 lanzaboote, 13 + nixos-generators, 13 14 ... 14 15 }: 15 16 let ··· 121 122 home 122 123 ; 123 124 }; 125 + virtualBoyy = 126 + let 127 + generate-vm = 128 + modules: 129 + nixos-generators.nixosGenerate { 130 + inherit modules system; 131 + specialArgs = { 132 + inherit 133 + pkgs 134 + inputs 135 + self 136 + outputs 137 + ; 138 + }; 139 + format = "vm"; 140 + }; 141 + vm = generate-vm [ 142 + self.nixosModules.default 143 + catppuccin.nixosModules.catppuccin 144 + ./hosts/VM/default.nix 145 + ]; 146 + in 147 + vm; 124 148 } 125 149 ); 126 150 ··· 141 165 default = import ./modules/nixvim; 142 166 servers = import ./modules/nixvim/servers; 143 167 }; 168 + 169 + apps = forEachSupportedSystem ( 170 + { pkgs, system }: 171 + { 172 + virtualBoyy = 173 + let 174 + scriptName = "run-virtualBoyy-vm"; 175 + script = pkgs.writeShellScriptBin "${scriptName}" '' 176 + ${self.packages.${system}.virtualBoyy}/bin/run-virtualBoyy-vm \ 177 + -enable-kvm \ 178 + -m 8G \ 179 + -smp 4\ 180 + ''; 181 + in 182 + { 183 + type = "app"; 184 + program = "${script}/bin/${scriptName}"; 185 + }; 186 + 187 + virtualBoyy-headless = 188 + let 189 + scriptName = "run-virtualBoyy-vm-headless"; 190 + script = pkgs.writeShellScriptBin "${scriptName}" '' 191 + ${self.packages.${system}.virtualBoyy}/bin/run-virtualBoyy-vm \ 192 + -enable-kvm \ 193 + -nographic \ 194 + -m 8G \ 195 + -smp 4\ 196 + ''; 197 + in 198 + { 199 + type = "app"; 200 + program = "${script}/bin/${scriptName}"; 201 + }; 202 + } 203 + ); 144 204 }; 145 205 146 206 inputs = { ··· 202 262 203 263 nixvim = { 204 264 url = "github:nix-community/nixvim"; 205 - # inputs.nixpkgs.follows = "nixpkgs"; 265 + inputs.nixpkgs.follows = "nixpkgs"; 206 266 }; 267 + 268 + nixos-generators = { 269 + url = "github:nix-community/nixos-generators"; 270 + inputs.nixpkgs.follows = "nixpkgs"; 271 + }; 272 + 207 273 }; 208 274 209 275 }
+40
home/virtualBoyy/default.nix
··· 1 + { 2 + self, 3 + lib, 4 + pkgs, 5 + inputs, 6 + ... 7 + }: 8 + 9 + { 10 + imports = [ 11 + self.homeModules.default 12 + ../adjoly/nixpkgs-conf.nix 13 + ]; 14 + 15 + keyzox = { 16 + gui.enable = true; 17 + shell.nixos.enable = true; 18 + hyprland.autostart.enable = true; 19 + bitwarden-ssh-agent.enable = true; 20 + theme.enable = true; 21 + 22 + hypridle.enable = lib.mkForce false; 23 + hyprlock.enable = lib.mkForce false; 24 + nextcloud.enable = lib.mkForce false; 25 + wl-sunset.enable = lib.mkForce false; 26 + gui-app.enable = lib.mkForce false; 27 + }; 28 + 29 + home.packages = with pkgs; [ 30 + firefox 31 + discord 32 + gearlever 33 + inputs.hyprland-contrib.packages.${pkgs.system}.grimblast 34 + xfce.thunar 35 + ]; 36 + 37 + programs.kitty.font.size = 13; # for kitty 38 + 39 + home.stateVersion = "25.05"; 40 + }
+49
hosts/VM/default.nix
··· 1 + { 2 + pkgs, 3 + modulesPath, 4 + lib, 5 + ... 6 + }: 7 + 8 + { 9 + imports = [ 10 + (modulesPath + "/profiles/minimal.nix") 11 + 12 + ../home.nix 13 + ]; 14 + 15 + services.openssh = { 16 + enable = true; 17 + ports = [ 22 ]; 18 + settings = { 19 + PermitRootLogin = "yes"; 20 + PasswordAuthentication = true; 21 + AllowUsers = null; 22 + }; 23 + }; 24 + 25 + networking.hostName = "virtualBoyy"; 26 + keyzox = { 27 + defaults = true; 28 + wm = true; 29 + 30 + theme.enable = true; 31 + boot = lib.mkForce false; 32 + 33 + # hardware = { 34 + # bluetooth.enable = true; 35 + # logitech.enable = true; 36 + # nvidia.enable = true; 37 + # }; 38 + programs = { 39 + docker.enable = true; 40 + # steam.enable = true; 41 + }; 42 + services = { 43 + ly.enable = true; 44 + gdm.enable = lib.mkForce false; 45 + }; 46 + }; 47 + 48 + system.stateVersion = "25.05"; # Did you read the comment? 49 + }
+1
pkgs/keyznvim/config/lsp/default.nix
··· 13 13 lsp = { 14 14 keymaps = [ 15 15 { 16 + mode = "n"; 16 17 key = "K"; 17 18 lspBufAction = "hover"; 18 19 }