personal nixos config and packages
at main 1.5 kB view raw
1{ 2 lib, 3 pkgs, 4 packages, 5 ... 6}: 7# let container-env = pkgs.buildFHSEnv { 8# name = "container-env"; 9# targetPkgs = pkgs: [ 10# pkgs.helix 11# ]; 12# # paths = [ packages.helix-wrapped ]; 13# # includeClosures = true; 14# # ignoreCollisions = true; 15# # pathsToLink = " /bin " 16# }; 17# in 18{ 19 programs.git = { 20 enable = true; 21 lfs.enable = true; 22 config = { 23 init.defaultBranch = "main"; 24 user.email = "asapaparo@gmail.com"; 25 user.name = "Asa Paparo"; 26 }; 27 }; 28 29 # programs.ssh.startAgent = true; 30 programs.ssh.extraConfig = "SetEnv TERM=xterm-256color"; 31 32 virtualisation.containers = { 33 enable = true; 34 35 # containersConf.settings = { 36 # containers = { 37 # volumes = [ "/nix/store:/nix/store:ro" ]; 38 # env = [ "PATH=${lib.getBin container-env}:$\PATH" ]; 39 # }; 40 # }; 41 }; 42 43 virtualisation.podman = { 44 enable = true; 45 dockerCompat = true; 46 dockerSocket.enable = true; 47 }; 48 49 # Enable direnv 50 programs.direnv.enable = true; 51 52 # Configure helix for editor and viewing functionality 53 environment.variables = { 54 EDITOR = "${lib.getExe pkgs.customPackages.helix-wrapped}"; 55 VISUAL = "${lib.getExe pkgs.customPackages.helix-wrapped}"; 56 }; 57 58 # Set up local llms 59 # services.ollama = { 60 # enable = true; 61 # # radeon 780M igpu = gfx1103 62 # # gfx1100 is closest working target 63 # rocmOverrideGfx = "11.0.0"; 64 # acceleration = "rocm"; 65 # # loadModels = [ 66 # # "gemma3n:latest" 67 # # ]; 68 # }; 69 70}